Skip to content

Commit

Permalink
[FIX] l10n_it_fatturapa_in: fix compare between float values
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMule71 committed Apr 20, 2022
1 parent a7c3105 commit 8bf158e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions l10n_it_fatturapa_in/models/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,12 @@ def e_inv_dati_ritenuta(self):
"found. Please manually check Withholding tax Amount\n"
)
if (
sum(self.ftpa_withholding_ids.mapped("amount"))
!= self.withholding_tax_amount
float_compare(
sum(self.ftpa_withholding_ids.mapped("amount")),
self.withholding_tax_amount,
precision_rounding=self.currency_id.rounding,
)
!= 0
):
error_message += _(
"E-bill contains ImportoRitenuta %s but created invoice has got"
Expand Down

0 comments on commit 8bf158e

Please sign in to comment.