[14.0]intrastat_product - fix amount_company_currency

This commit is contained in:
Luc De Meyer
2021-12-31 16:32:50 +01:00
committed by Alexis de Lattre
parent 5edd06c88e
commit 8f3bfdf886

View File

@@ -700,7 +700,8 @@ class IntrastatProductDeclaration(models.Model):
)
total_inv_weight += weight
amount_company_currency = -inv_line.balance
sign = invoice.move_type in ("in_invoice", "out_refund") and 1 or -1
amount_company_currency = sign * inv_line.balance
total_inv_product_cc += amount_company_currency
if inv_intrastat_line: