@plasoft/boletos 1.0.55 → 1.0.56
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.d.mts +2 -2
- package/build/index.d.ts +2 -2
- 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/build/sicredi-boleto.hbs +2 -3
- package/package.json +1 -1
package/build/index.mjs
CHANGED
|
@@ -1288,7 +1288,7 @@ function gerarPDF3(_0) {
|
|
|
1288
1288
|
return __async(this, arguments, function* ({ dados }) {
|
|
1289
1289
|
try {
|
|
1290
1290
|
const { generatePDF, dadosPDF } = dados;
|
|
1291
|
-
if (!dadosPDF.pagador.
|
|
1291
|
+
if (!dadosPDF.pagador.cpfcnpj) {
|
|
1292
1292
|
throw new Error("CPF/CNPJ do pagador na\u0303o informado!");
|
|
1293
1293
|
}
|
|
1294
1294
|
const codigoBarra2 = yield BwipJs3.toBuffer({
|
|
@@ -1308,7 +1308,7 @@ function gerarPDF3(_0) {
|
|
|
1308
1308
|
dadosPDF.pagador.endereco.cep = maskFormat_default.retornaCEPFormatado(
|
|
1309
1309
|
dadosPDF.pagador.endereco.cep
|
|
1310
1310
|
);
|
|
1311
|
-
dadosPDF.pagador.
|
|
1311
|
+
dadosPDF.pagador.cpfcnpj = maskFormat_default.retornaCpfCnpjFormatado(dadosPDF.pagador.cpfcnpj);
|
|
1312
1312
|
dadosPDF.boleto.valorAcrescimo = maskFormat_default.numberToReal(
|
|
1313
1313
|
dadosPDF.boleto.valorAcrescimo
|
|
1314
1314
|
);
|
|
@@ -1347,6 +1347,7 @@ function gerarPDF3(_0) {
|
|
|
1347
1347
|
dadosPDF.boleto.instrucao4 = `PROTESTAR AP\xD3S ${protestoDias} DIAS CORRIDOS DO VENCIMENTO`;
|
|
1348
1348
|
}
|
|
1349
1349
|
dadosPDF.boleto.valor = maskFormat_default.numberToReal(dadosPDF.boleto.valor);
|
|
1350
|
+
dadosPDF.pagador.isCnpj = dadosPDF.pagador.cpfcnpj.length > 14;
|
|
1350
1351
|
const content = compileHbs(getPathTemplates("sicredi-boleto.hbs"), dadosPDF);
|
|
1351
1352
|
const config = {
|
|
1352
1353
|
displayHeaderFooter: false,
|