Do not break on empty invoices

Sentry PRETIXEU-S8
This commit is contained in:
Raphael Michel
2019-02-04 14:07:01 +01:00
parent dfcda0fa2c
commit 0440187e59

View File

@@ -546,8 +546,8 @@ class InvoiceDataExporter(MultiSheetListExporter):
_('Yes') if i.reverse_charge else _('No'),
i.foreign_currency_display,
i.foreign_currency_rate,
i.total_gross,
Decimal(i.total_net).quantize(Decimal('0.01')),
i.total_gross if i.total_gross else Decimal('0.00'),
Decimal(i.total_net if i.total_net else '0.00').quantize(Decimal('0.01')),
]
elif sheet == 'lines':
yield [