Skip to content

Commit

Permalink
Merge pull request #4 from lorenzoallegrucci/14.0-fix-problema-segno
Browse files Browse the repository at this point in the history
[FIX][l10n_it_fatturapa_in] Fix amount_total_signed sign
  • Loading branch information
odooNextev authored Apr 12, 2023
2 parents fd33ac8 + 48fff09 commit 54464d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion l10n_it_fatturapa_in/models/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _compute_amount(self):
for inv in self:
if inv.efatt_rounding != 0:
inv.amount_total += inv.efatt_rounding
sign = inv.move_type in ["in_refund", "out_refund"] and -1 or 1
sign = inv.move_type in ["in_refund", "out_refund"] and 1 or -1
inv.amount_total_signed = inv.amount_total * sign

def action_post(self):
Expand Down

0 comments on commit 54464d5

Please sign in to comment.