Skip to content

Commit

Permalink
Ajusta para caso o valor de desconto e abatimento seja nulo.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariadvezza committed Aug 23, 2024
1 parent 4e08556 commit 5f53f5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/brcobranca/boleto/template/rghost_bolepix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def modelo_generico_cabecalho(doc, boleto)
doc.show boleto.valor_documento.to_currency

move_more(doc, -15.8, -0.75)
doc.show boleto.descontos_e_abatimentos.to_currency
doc.show boleto.descontos_e_abatimentos&.to_currency

move_more(doc, 0.8, -0.55)
doc.show "#{boleto.sacado} - #{boleto.sacado_documento.formata_documento}"
Expand Down Expand Up @@ -238,7 +238,7 @@ def modelo_generico_rodape(doc, boleto)
doc.show boleto.valor_documento.to_currency

move_more(doc, 0, -0.8)
doc.show boleto.descontos_e_abatimentos.to_currency
doc.show boleto.descontos_e_abatimentos&.to_currency

move_more(doc, 0, 0.8)
if boleto.instrucoes
Expand Down

0 comments on commit 5f53f5d

Please sign in to comment.