Bernd Wurst commited on 2024-05-18 11:07:23
Zeige 1 geänderte Dateien mit 0 Einfügungen und 3 Löschungen.
| ... | ... |
@@ -125,7 +125,6 @@ def InvoiceToXML(invoice): |
| 125 | 125 |
if 'period_start' in el and el['period_start']: |
| 126 | 126 |
start = el['period_start'] |
| 127 | 127 |
if start and end and start != end: |
| 128 |
- print(f"{start} != {end}")
|
|
| 129 | 128 |
deliverydate = None |
| 130 | 129 |
only_one_date = False |
| 131 | 130 |
raise Exception('loop abort')
|
| ... | ... |
@@ -133,12 +132,10 @@ def InvoiceToXML(invoice): |
| 133 | 132 |
deliverydate = el['period_start'] |
| 134 | 133 |
continue |
| 135 | 134 |
if start != deliverydate: |
| 136 |
- print(f"{start} != {deliverydate}")
|
|
| 137 | 135 |
deliverydate = None |
| 138 | 136 |
only_one_date = False |
| 139 | 137 |
raise Exception('loop abort')
|
| 140 | 138 |
except Exception as e: |
| 141 |
- print('exception: ' + str(e))
|
|
| 142 | 139 |
pass |
| 143 | 140 |
if only_one_date and deliverydate: |
| 144 | 141 |
doc.trade.delivery.event.occurrence = deliverydate |
| 145 | 142 |