@plasoft/boletos 1.0.41 → 1.0.42
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 +1 -1
- package/build/index.mjs +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -1558,7 +1558,7 @@ function gerarDadosBoleto4({ dados }) {
|
|
|
1558
1558
|
const nossoNumero = getNossoNumero2(bancario.agencia, codigo_cliente, String(parcela.id_boleto));
|
|
1559
1559
|
const fatorVencimento = getFatorVencimento(parcela.vencimento);
|
|
1560
1560
|
const valor = getValor4(Number(parcela.valor));
|
|
1561
|
-
const campoLivre = "1" + bancario.agencia + bancario.modalidade + codigo_cliente + nossoNumero + padLeft(parcela.parcela, 3);
|
|
1561
|
+
const campoLivre = "1" + bancario.agencia + bancario.modalidade + padLeft(codigo_cliente, 7) + nossoNumero + padLeft(parcela.parcela, 3);
|
|
1562
1562
|
const digitoGeral = getDigitoGeral4(`7569${fatorVencimento}${valor}${campoLivre}`);
|
|
1563
1563
|
const codigoBarra2 = `7569${digitoGeral}${fatorVencimento}${valor}${campoLivre}`;
|
|
1564
1564
|
const campo1 = copy(codigoBarra2, 1, 3) + copy(codigoBarra2, 4, 4) + copy(codigoBarra2, 20, 24);
|
package/build/index.mjs
CHANGED
|
@@ -1521,7 +1521,7 @@ function gerarDadosBoleto4({ dados }) {
|
|
|
1521
1521
|
const nossoNumero = getNossoNumero2(bancario.agencia, codigo_cliente, String(parcela.id_boleto));
|
|
1522
1522
|
const fatorVencimento = getFatorVencimento(parcela.vencimento);
|
|
1523
1523
|
const valor = getValor4(Number(parcela.valor));
|
|
1524
|
-
const campoLivre = "1" + bancario.agencia + bancario.modalidade + codigo_cliente + nossoNumero + padLeft(parcela.parcela, 3);
|
|
1524
|
+
const campoLivre = "1" + bancario.agencia + bancario.modalidade + padLeft(codigo_cliente, 7) + nossoNumero + padLeft(parcela.parcela, 3);
|
|
1525
1525
|
const digitoGeral = getDigitoGeral4(`7569${fatorVencimento}${valor}${campoLivre}`);
|
|
1526
1526
|
const codigoBarra2 = `7569${digitoGeral}${fatorVencimento}${valor}${campoLivre}`;
|
|
1527
1527
|
const campo1 = copy(codigoBarra2, 1, 3) + copy(codigoBarra2, 4, 4) + copy(codigoBarra2, 20, 24);
|