@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.d.mts
CHANGED
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
|
@@ -1323,7 +1323,7 @@ function gerarPDF3(_0) {
|
|
|
1323
1323
|
return __async(this, arguments, function* ({ dados }) {
|
|
1324
1324
|
try {
|
|
1325
1325
|
const { generatePDF, dadosPDF } = dados;
|
|
1326
|
-
if (!dadosPDF.pagador.
|
|
1326
|
+
if (!dadosPDF.pagador.cpfcnpj) {
|
|
1327
1327
|
throw new Error("CPF/CNPJ do pagador na\u0303o informado!");
|
|
1328
1328
|
}
|
|
1329
1329
|
const codigoBarra2 = yield import_bwip_js3.default.toBuffer({
|
|
@@ -1343,7 +1343,7 @@ function gerarPDF3(_0) {
|
|
|
1343
1343
|
dadosPDF.pagador.endereco.cep = maskFormat_default.retornaCEPFormatado(
|
|
1344
1344
|
dadosPDF.pagador.endereco.cep
|
|
1345
1345
|
);
|
|
1346
|
-
dadosPDF.pagador.
|
|
1346
|
+
dadosPDF.pagador.cpfcnpj = maskFormat_default.retornaCpfCnpjFormatado(dadosPDF.pagador.cpfcnpj);
|
|
1347
1347
|
dadosPDF.boleto.valorAcrescimo = maskFormat_default.numberToReal(
|
|
1348
1348
|
dadosPDF.boleto.valorAcrescimo
|
|
1349
1349
|
);
|
|
@@ -1382,6 +1382,7 @@ function gerarPDF3(_0) {
|
|
|
1382
1382
|
dadosPDF.boleto.instrucao4 = `PROTESTAR AP\xD3S ${protestoDias} DIAS CORRIDOS DO VENCIMENTO`;
|
|
1383
1383
|
}
|
|
1384
1384
|
dadosPDF.boleto.valor = maskFormat_default.numberToReal(dadosPDF.boleto.valor);
|
|
1385
|
+
dadosPDF.pagador.isCnpj = dadosPDF.pagador.cpfcnpj.length > 14;
|
|
1385
1386
|
const content = compileHbs(getPathTemplates("sicredi-boleto.hbs"), dadosPDF);
|
|
1386
1387
|
const config = {
|
|
1387
1388
|
displayHeaderFooter: false,
|