Skip to content

Commit

Permalink
Merge pull request #24 from luc-demeyer/patch-5
Browse files Browse the repository at this point in the history
[8.0] skip invoice lines with value 0
  • Loading branch information
luc-demeyer committed Nov 25, 2018
2 parents d814624 + 47a531c commit c282362
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions intrastat_product/models/intrastat_product_declaration.py
Expand Up @@ -501,6 +501,9 @@ def _gather_invoices(self):
total_inv_weight = 0.0
for inv_line in invoice.invoice_line:

if not inv_line.price_subtotal:
continue

if (
accessory_costs and
inv_line.product_id and
Expand Down

0 comments on commit c282362

Please sign in to comment.