@plasoft/boletos 1.0.9 → 1.0.11

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.
@@ -181,7 +181,7 @@
181
181
  <td width="15%">
182
182
  <div class="td-content">
183
183
  <strong>Carteira</strong>
184
- <span>{{beneficiario.dadosBancarios.carteira}}</span>
184
+ <span>{{beneficiario.dadosBancario.carteira}}</span>
185
185
  </div>
186
186
  </td>
187
187
 
@@ -219,7 +219,7 @@
219
219
  <div class="td-content">
220
220
  <strong>Agência / Código do Beneficiário</strong>
221
221
  <span>
222
- {{beneficiario.dadosBancarios.agencia}}-{{beneficiario.dadosBancarios.agenciaDigito}}/{{beneficiario.dadosBancarios.conta}}-{{beneficiario.dadosBancarios.contaDigito}}
222
+ {{beneficiario.dadosBancario.agencia}}-{{beneficiario.dadosBancario.agenciaDigito}}/{{beneficiario.dadosBancario.conta}}-{{beneficiario.dadosBancario.contaDigito}}
223
223
  </span>
224
224
  </div>
225
225
  </td>
@@ -290,7 +290,7 @@
290
290
  <div class="td-content right">
291
291
  <strong>Agência / Código do Beneficiário</strong>
292
292
  <span>
293
- {{beneficiario.dadosBancarios.agencia}}-{{beneficiario.dadosBancarios.agenciaDigito}}/{{beneficiario.dadosBancarios.conta}}-{{beneficiario.dadosBancarios.contaDigito}}
293
+ {{beneficiario.dadosBancario.agencia}}-{{beneficiario.dadosBancario.agenciaDigito}}/{{beneficiario.dadosBancario.conta}}-{{beneficiario.dadosBancario.contaDigito}}
294
294
  </span>
295
295
  </div>
296
296
  </td>
@@ -358,7 +358,7 @@
358
358
  <td>
359
359
  <div class="td-content">
360
360
  <strong>Carteira</strong>
361
- <span>{{beneficiario.dadosBancarios.carteira}}</span>
361
+ <span>{{beneficiario.dadosBancario.carteira}}</span>
362
362
  </div>
363
363
  </td>
364
364
 
package/build/index.js CHANGED
@@ -287,13 +287,11 @@ function gerarPDF(_0) {
287
287
  }
288
288
  const jurosMes = Number(((_a = dadosPDF.beneficiario.dadosBancario) == null ? void 0 : _a.juros) || 0);
289
289
  if (jurosMes > 0) {
290
- const juros = Number(dadosPDF.boleto.valor) * jurosMes / 100 / 30;
291
- dadosPDF.boleto.instrucao1 = `AP\xD3S O VENCIMENTO, COBRAR JUROS DE R$ ${numberToReal(juros)} POR DIA DE ATRASO`;
290
+ dadosPDF.boleto.instrucao1 = `AP\xD3S O VENCIMENTO, COBRAR JUROS DE ${numberToReal(jurosMes)} %`;
292
291
  }
293
292
  const descontoVencimento = Number(((_b = dadosPDF.beneficiario.dadosBancario) == null ? void 0 : _b.desconto) || 0);
294
293
  if (descontoVencimento > 0) {
295
- const desconto = Number(dadosPDF.boleto.valor) / 100 * descontoVencimento;
296
- dadosPDF.boleto.instrucao2 = `AT\xC9 O VENCIMENTO, CONCEDER DESCONTO DE R$ ${numberToReal(desconto)}`;
294
+ dadosPDF.boleto.instrucao2 = `AT\xC9 O VENCIMENTO, CONCEDER DESCONTO DE ${numberToReal(descontoVencimento)} %`;
297
295
  }
298
296
  const multaAtraso = Number(((_c = dadosPDF.beneficiario.dadosBancario) == null ? void 0 : _c.multa) || 0);
299
297
  if (multaAtraso > 0) {
package/build/index.mjs CHANGED
@@ -250,13 +250,11 @@ function gerarPDF(_0) {
250
250
  }
251
251
  const jurosMes = Number(((_a = dadosPDF.beneficiario.dadosBancario) == null ? void 0 : _a.juros) || 0);
252
252
  if (jurosMes > 0) {
253
- const juros = Number(dadosPDF.boleto.valor) * jurosMes / 100 / 30;
254
- dadosPDF.boleto.instrucao1 = `AP\xD3S O VENCIMENTO, COBRAR JUROS DE R$ ${numberToReal(juros)} POR DIA DE ATRASO`;
253
+ dadosPDF.boleto.instrucao1 = `AP\xD3S O VENCIMENTO, COBRAR JUROS DE ${numberToReal(jurosMes)} %`;
255
254
  }
256
255
  const descontoVencimento = Number(((_b = dadosPDF.beneficiario.dadosBancario) == null ? void 0 : _b.desconto) || 0);
257
256
  if (descontoVencimento > 0) {
258
- const desconto = Number(dadosPDF.boleto.valor) / 100 * descontoVencimento;
259
- dadosPDF.boleto.instrucao2 = `AT\xC9 O VENCIMENTO, CONCEDER DESCONTO DE R$ ${numberToReal(desconto)}`;
257
+ dadosPDF.boleto.instrucao2 = `AT\xC9 O VENCIMENTO, CONCEDER DESCONTO DE ${numberToReal(descontoVencimento)} %`;
260
258
  }
261
259
  const multaAtraso = Number(((_c = dadosPDF.beneficiario.dadosBancario) == null ? void 0 : _c.multa) || 0);
262
260
  if (multaAtraso > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasoft/boletos",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "main": "build",
5
5
  "license": "ISC",
6
6
  "scripts": {