@plasoft/boletos 1.0.34 → 1.0.36
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/banco-brasil-boleto.hbs +2 -2
- package/build/index.js +5 -5
- package/build/index.mjs +5 -5
- package/package.json +1 -1
|
@@ -377,7 +377,7 @@
|
|
|
377
377
|
|
|
378
378
|
<td style="border-bottom: none">
|
|
379
379
|
<div class="td-content align-right">
|
|
380
|
-
<strong class="align-right">RECIBO DO
|
|
380
|
+
<strong class="align-right">RECIBO DO PAGADOR</strong>
|
|
381
381
|
<strong style="font-size: 16px;">
|
|
382
382
|
{{boleto.linhaDigitavel}}
|
|
383
383
|
</strong>
|
|
@@ -648,7 +648,7 @@
|
|
|
648
648
|
|
|
649
649
|
<td style="border-bottom: none">
|
|
650
650
|
<div class="td-content align-right">
|
|
651
|
-
<strong class="align-right"
|
|
651
|
+
<strong class="align-right"> </strong>
|
|
652
652
|
<strong style="font-size: 16px;">
|
|
653
653
|
{{boleto.linhaDigitavel}}
|
|
654
654
|
</strong>
|
package/build/index.js
CHANGED
|
@@ -2241,12 +2241,12 @@ function gerarRemessa5({ dados }) {
|
|
|
2241
2241
|
arquivo.add("1");
|
|
2242
2242
|
arquivo.add("R");
|
|
2243
2243
|
arquivo.add("01");
|
|
2244
|
-
arquivo.add("
|
|
2244
|
+
arquivo.add(" ");
|
|
2245
2245
|
arquivo.add("020");
|
|
2246
2246
|
arquivo.add(" ");
|
|
2247
2247
|
arquivo.add("2");
|
|
2248
2248
|
arquivo.add(beneficiario.cnpj.padStart(15, "0"));
|
|
2249
|
-
arquivo.add(dadosBancario.convenio.
|
|
2249
|
+
arquivo.add(dadosBancario.convenio.padStart(9, "0"));
|
|
2250
2250
|
arquivo.add("0014");
|
|
2251
2251
|
arquivo.add(dadosBancario.carteira.padStart(2, "0"));
|
|
2252
2252
|
arquivo.add(dadosBancario.variacao_carteira.padStart(3, "0"));
|
|
@@ -2287,15 +2287,15 @@ function gerarRemessa5({ dados }) {
|
|
|
2287
2287
|
} else if (convenio.length === 7) {
|
|
2288
2288
|
switch (boleto.tipoDocumento) {
|
|
2289
2289
|
case "NFE": {
|
|
2290
|
-
nosso_numero = `${convenio}${boleto.id_boleto.toString().padStart(10, "0")}
|
|
2290
|
+
nosso_numero = `${convenio}${(boleto.id_boleto.toString() + "2").padStart(10, "0")}`;
|
|
2291
2291
|
break;
|
|
2292
2292
|
}
|
|
2293
2293
|
case "FAT": {
|
|
2294
|
-
nosso_numero = `${convenio}${boleto.id_boleto.toString().padStart(10, "0")}
|
|
2294
|
+
nosso_numero = `${convenio}${(boleto.id_boleto.toString() + "4").padStart(10, "0")}`;
|
|
2295
2295
|
break;
|
|
2296
2296
|
}
|
|
2297
2297
|
case "FIN": {
|
|
2298
|
-
nosso_numero = `${convenio}${boleto.id_boleto.toString().padStart(10, "0")}
|
|
2298
|
+
nosso_numero = `${convenio}${(boleto.id_boleto.toString() + "5").padStart(10, "0")}`;
|
|
2299
2299
|
break;
|
|
2300
2300
|
}
|
|
2301
2301
|
}
|
package/build/index.mjs
CHANGED
|
@@ -2204,12 +2204,12 @@ function gerarRemessa5({ dados }) {
|
|
|
2204
2204
|
arquivo.add("1");
|
|
2205
2205
|
arquivo.add("R");
|
|
2206
2206
|
arquivo.add("01");
|
|
2207
|
-
arquivo.add("
|
|
2207
|
+
arquivo.add(" ");
|
|
2208
2208
|
arquivo.add("020");
|
|
2209
2209
|
arquivo.add(" ");
|
|
2210
2210
|
arquivo.add("2");
|
|
2211
2211
|
arquivo.add(beneficiario.cnpj.padStart(15, "0"));
|
|
2212
|
-
arquivo.add(dadosBancario.convenio.
|
|
2212
|
+
arquivo.add(dadosBancario.convenio.padStart(9, "0"));
|
|
2213
2213
|
arquivo.add("0014");
|
|
2214
2214
|
arquivo.add(dadosBancario.carteira.padStart(2, "0"));
|
|
2215
2215
|
arquivo.add(dadosBancario.variacao_carteira.padStart(3, "0"));
|
|
@@ -2250,15 +2250,15 @@ function gerarRemessa5({ dados }) {
|
|
|
2250
2250
|
} else if (convenio.length === 7) {
|
|
2251
2251
|
switch (boleto.tipoDocumento) {
|
|
2252
2252
|
case "NFE": {
|
|
2253
|
-
nosso_numero = `${convenio}${boleto.id_boleto.toString().padStart(10, "0")}
|
|
2253
|
+
nosso_numero = `${convenio}${(boleto.id_boleto.toString() + "2").padStart(10, "0")}`;
|
|
2254
2254
|
break;
|
|
2255
2255
|
}
|
|
2256
2256
|
case "FAT": {
|
|
2257
|
-
nosso_numero = `${convenio}${boleto.id_boleto.toString().padStart(10, "0")}
|
|
2257
|
+
nosso_numero = `${convenio}${(boleto.id_boleto.toString() + "4").padStart(10, "0")}`;
|
|
2258
2258
|
break;
|
|
2259
2259
|
}
|
|
2260
2260
|
case "FIN": {
|
|
2261
|
-
nosso_numero = `${convenio}${boleto.id_boleto.toString().padStart(10, "0")}
|
|
2261
|
+
nosso_numero = `${convenio}${(boleto.id_boleto.toString() + "5").padStart(10, "0")}`;
|
|
2262
2262
|
break;
|
|
2263
2263
|
}
|
|
2264
2264
|
}
|