@plasoft/boletos 1.0.59 → 1.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +2 -1
- package/build/index.js.map +1 -1
- package/build/index.mjs +2 -1
- package/build/index.mjs.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -2111,6 +2111,7 @@ var import_date_fns9 = require("date-fns");
|
|
|
2111
2111
|
function gerarRetorno4({ dados }) {
|
|
2112
2112
|
try {
|
|
2113
2113
|
const { arquivo } = dados;
|
|
2114
|
+
console.log(arquivo);
|
|
2114
2115
|
const documentos = [];
|
|
2115
2116
|
for (let i = 0; i < arquivo.length; i++) {
|
|
2116
2117
|
let linha = arquivo[i];
|
|
@@ -2142,7 +2143,7 @@ function gerarRetorno4({ dados }) {
|
|
|
2142
2143
|
dataCredito = (0, import_date_fns9.parse)(dataCreditoString, "ddMMyyyy", /* @__PURE__ */ new Date());
|
|
2143
2144
|
} else {
|
|
2144
2145
|
const dataOcorrenciaString = linha.substring(137, 145);
|
|
2145
|
-
dataCredito = (0, import_date_fns9.parse)(dataOcorrenciaString, "
|
|
2146
|
+
dataCredito = (0, import_date_fns9.parse)(dataOcorrenciaString, "ddMMyyyy", /* @__PURE__ */ new Date());
|
|
2146
2147
|
}
|
|
2147
2148
|
const valorAbatimentoString = linha.substring(47, 62);
|
|
2148
2149
|
const valorAbatimento = Number(valorAbatimentoString) / 100;
|