Skip to content

Commit

Permalink
[FIX][l10n_it_fatturapa_in] Fix amount_total_signed sign
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzoallegrucci committed Nov 16, 2022
1 parent ef4d310 commit 48fff09
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 48fff09

Please sign in to comment.