@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.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
- arquivo.add(`${boleto.numeroDocumento}/${Number(boleto.parcela)}`.padEnd(15, " "));
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");
@@ -2076,7 +2078,6 @@ import { parse as parse3 } from "date-fns";
2076
2078
  function gerarRetorno4({ dados }) {
2077
2079
  try {
2078
2080
  const { arquivo } = dados;
2079
- console.log(arquivo);
2080
2081
  const documentos = [];
2081
2082
  for (let i = 0; i < arquivo.length; i++) {
2082
2083
  let linha = arquivo[i];