Skip to content

Commit

Permalink
Merge PR #3637 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by renatonlima
  • Loading branch information
OCA-git-bot committed Feb 21, 2025
2 parents ce5edcb + 4bf7145 commit 788e847
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ def _prepare_bank_line_santander(self, cnab_config, linhas_pagamentos):
linhas_pagamentos["dias_baixa"] = str(
cnab_config.write_off_devolution_number_of_days
)
# Os dados de multa e desconto também são obrigatórios no segmento R
linhas_pagamentos["codigo_multa"] = cnab_config.boleto_fee_code or "0"
linhas_pagamentos["percentual_multa"] = cnab_config.boleto_fee_perc or 0.0
if self.discount_value:
linhas_pagamentos["data_desconto"] = self.date.strftime("%Y/%m/%d")
linhas_pagamentos["valor_desconto"] = self.discount_value

def prepare_bank_payment_line(self, bank_name_brcobranca):
cnab_config = self.order_id.payment_mode_id.cnab_config_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,8 @@
ref="santander_240_boleto_write_off_devolution_3"
/>
<field name="write_off_devolution_number_of_days">0</field>
<field name="boleto_fee_code">0</field>
<field name="boleto_fee_perc">0.00</field>
</record>

<!-- CNAB Manual Test -->
Expand Down

0 comments on commit 788e847

Please sign in to comment.