mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
dekodi: Fix version and mandatory fields
This commit is contained in:
@@ -145,6 +145,9 @@ class DekodiNREIExporter(BaseExporter):
|
|||||||
'VatDp': False,
|
'VatDp': False,
|
||||||
'Zip': invoice.invoice_to_zipcode
|
'Zip': invoice.invoice_to_zipcode
|
||||||
}
|
}
|
||||||
|
if not hdr['FamN'] and not hdr['CN']:
|
||||||
|
hdr['CN'] = "Unbekannter Kunde"
|
||||||
|
|
||||||
if invoice.refers:
|
if invoice.refers:
|
||||||
hdr['PvrINo'] = invoice.refers.full_invoice_no
|
hdr['PvrINo'] = invoice.refers.full_invoice_no
|
||||||
if p_last:
|
if p_last:
|
||||||
@@ -179,7 +182,7 @@ class DekodiNREIExporter(BaseExporter):
|
|||||||
|
|
||||||
jo = {
|
jo = {
|
||||||
'Format': 'NREI',
|
'Format': 'NREI',
|
||||||
'Version': '18.10.2',
|
'Version': '18.10.2.0',
|
||||||
'SourceSystem': 'pretix',
|
'SourceSystem': 'pretix',
|
||||||
'Data': [
|
'Data': [
|
||||||
self._encode_invoice(i) for i in qs
|
self._encode_invoice(i) for i in qs
|
||||||
|
|||||||
Reference in New Issue
Block a user