@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.mjs
CHANGED
|
@@ -2076,6 +2076,7 @@ import { parse as parse3 } from "date-fns";
|
|
|
2076
2076
|
function gerarRetorno4({ dados }) {
|
|
2077
2077
|
try {
|
|
2078
2078
|
const { arquivo } = dados;
|
|
2079
|
+
console.log(arquivo);
|
|
2079
2080
|
const documentos = [];
|
|
2080
2081
|
for (let i = 0; i < arquivo.length; i++) {
|
|
2081
2082
|
let linha = arquivo[i];
|
|
@@ -2107,7 +2108,7 @@ function gerarRetorno4({ dados }) {
|
|
|
2107
2108
|
dataCredito = parse3(dataCreditoString, "ddMMyyyy", /* @__PURE__ */ new Date());
|
|
2108
2109
|
} else {
|
|
2109
2110
|
const dataOcorrenciaString = linha.substring(137, 145);
|
|
2110
|
-
dataCredito = parse3(dataOcorrenciaString, "
|
|
2111
|
+
dataCredito = parse3(dataOcorrenciaString, "ddMMyyyy", /* @__PURE__ */ new Date());
|
|
2111
2112
|
}
|
|
2112
2113
|
const valorAbatimentoString = linha.substring(47, 62);
|
|
2113
2114
|
const valorAbatimento = Number(valorAbatimentoString) / 100;
|