mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Do not break on empty invoices
Sentry PRETIXEU-S8
This commit is contained in:
@@ -546,8 +546,8 @@ class InvoiceDataExporter(MultiSheetListExporter):
|
|||||||
_('Yes') if i.reverse_charge else _('No'),
|
_('Yes') if i.reverse_charge else _('No'),
|
||||||
i.foreign_currency_display,
|
i.foreign_currency_display,
|
||||||
i.foreign_currency_rate,
|
i.foreign_currency_rate,
|
||||||
i.total_gross,
|
i.total_gross if i.total_gross else Decimal('0.00'),
|
||||||
Decimal(i.total_net).quantize(Decimal('0.01')),
|
Decimal(i.total_net if i.total_net else '0.00').quantize(Decimal('0.01')),
|
||||||
]
|
]
|
||||||
elif sheet == 'lines':
|
elif sheet == 'lines':
|
||||||
yield [
|
yield [
|
||||||
|
|||||||
Reference in New Issue
Block a user