@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.js
CHANGED
|
@@ -1864,7 +1864,9 @@ function gerarRemessa4({ dados }) {
|
|
|
1864
1864
|
arquivo.add(" ".padEnd(5, " "));
|
|
1865
1865
|
arquivo.add(dadosBancario.carteira);
|
|
1866
1866
|
arquivo.add("0 22");
|
|
1867
|
-
|
|
1867
|
+
console.log(boleto.numeroDocumento);
|
|
1868
|
+
const documento = `${boleto.numeroDocumento}/${Number(boleto.parcela)}`.padEnd(14, " ");
|
|
1869
|
+
arquivo.add(documento.substring(0, 15));
|
|
1868
1870
|
arquivo.add(vencimento);
|
|
1869
1871
|
arquivo.add(Number(boleto.valor).toFixed(2).replace(".", "").padStart(15, "0"));
|
|
1870
1872
|
arquivo.add("00000");
|
|
@@ -2142,7 +2144,7 @@ function gerarRetorno4({ dados }) {
|
|
|
2142
2144
|
dataCredito = (0, import_date_fns9.parse)(dataCreditoString, "ddMMyyyy", /* @__PURE__ */ new Date());
|
|
2143
2145
|
} else {
|
|
2144
2146
|
const dataOcorrenciaString = linha.substring(137, 145);
|
|
2145
|
-
dataCredito = (0, import_date_fns9.parse)(dataOcorrenciaString, "
|
|
2147
|
+
dataCredito = (0, import_date_fns9.parse)(dataOcorrenciaString, "ddMMyyyy", /* @__PURE__ */ new Date());
|
|
2146
2148
|
}
|
|
2147
2149
|
const valorAbatimentoString = linha.substring(47, 62);
|
|
2148
2150
|
const valorAbatimento = Number(valorAbatimentoString) / 100;
|