@plasoft/boletos 1.0.59 → 1.0.61
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 +4 -2
- package/build/index.js.map +1 -1
- package/build/index.mjs +4 -2
- package/build/index.mjs.map +1 -1
- package/package.json +1 -1
package/build/index.mjs
CHANGED
|
@@ -1829,7 +1829,9 @@ function gerarRemessa4({ dados }) {
|
|
|
1829
1829
|
arquivo.add(" ".padEnd(5, " "));
|
|
1830
1830
|
arquivo.add(dadosBancario.carteira);
|
|
1831
1831
|
arquivo.add("0 22");
|
|
1832
|
-
|
|
1832
|
+
console.log(boleto.numeroDocumento);
|
|
1833
|
+
const documento = `${boleto.numeroDocumento}/${Number(boleto.parcela)}`.padEnd(14, " ");
|
|
1834
|
+
arquivo.add(documento.substring(0, 15));
|
|
1833
1835
|
arquivo.add(vencimento);
|
|
1834
1836
|
arquivo.add(Number(boleto.valor).toFixed(2).replace(".", "").padStart(15, "0"));
|
|
1835
1837
|
arquivo.add("00000");
|
|
@@ -2107,7 +2109,7 @@ function gerarRetorno4({ dados }) {
|
|
|
2107
2109
|
dataCredito = parse3(dataCreditoString, "ddMMyyyy", /* @__PURE__ */ new Date());
|
|
2108
2110
|
} else {
|
|
2109
2111
|
const dataOcorrenciaString = linha.substring(137, 145);
|
|
2110
|
-
dataCredito = parse3(dataOcorrenciaString, "
|
|
2112
|
+
dataCredito = parse3(dataOcorrenciaString, "ddMMyyyy", /* @__PURE__ */ new Date());
|
|
2111
2113
|
}
|
|
2112
2114
|
const valorAbatimentoString = linha.substring(47, 62);
|
|
2113
2115
|
const valorAbatimento = Number(valorAbatimentoString) / 100;
|