Update intrastat_product_declaration.py

@cubells
I changed the check on 'price_unit' with value into price_subtotal.
By doing so we also cover the case of invoice lines with 100% discount.
Let me know if it's ok so that we can merge (and forward port to v10)
This commit is contained in:
Luc De Meyer
2017-10-28 20:55:35 +02:00
committed by GitHub
parent e2b5c3ae9e
commit b70119d272

View File

@@ -501,7 +501,7 @@ class IntrastatProductDeclaration(models.Model):
total_inv_weight = 0.0
for inv_line in invoice.invoice_line:
if not inv_line.price_unit:
if not inv_line.price_subtotal:
continue
if (