mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
[14.0]intrastat_product - fix amount_company_currency
intrastat_product 14.0.1.5.1 intrastat_product 14.0.1.5.2
This commit is contained in:
committed by
Víctor Martínez
parent
69bb037dcd
commit
69cc34f84e
@@ -7,7 +7,7 @@
|
||||
|
||||
{
|
||||
"name": "Intrastat Product",
|
||||
"version": "14.0.1.5.0",
|
||||
"version": "14.0.1.5.2",
|
||||
"category": "Intrastat",
|
||||
"license": "AGPL-3",
|
||||
"summary": "Base module for Intrastat Product",
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user