@plasoft/boletos 1.0.60 → 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 +3 -2
- package/build/index.js.map +1 -1
- package/build/index.mjs +3 -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");
|
|
@@ -2111,7 +2113,6 @@ var import_date_fns9 = require("date-fns");
|
|
|
2111
2113
|
function gerarRetorno4({ dados }) {
|
|
2112
2114
|
try {
|
|
2113
2115
|
const { arquivo } = dados;
|
|
2114
|
-
console.log(arquivo);
|
|
2115
2116
|
const documentos = [];
|
|
2116
2117
|
for (let i = 0; i < arquivo.length; i++) {
|
|
2117
2118
|
let linha = arquivo[i];
|