Bernd Wurst commited on 2024-05-18 07:55:51
Zeige 3 geänderte Dateien mit 5 Einfügungen und 0 Löschungen.
... | ... |
@@ -51,6 +51,7 @@ class InvoiceTable(object): |
51 | 51 |
'total': (e['price'] * e['count']), |
52 | 52 |
'vat': e['vat'], |
53 | 53 |
'tender': False, |
54 |
+ 'print_date': True, |
|
54 | 55 |
} |
55 | 56 |
if ret['vat'] > 1: |
56 | 57 |
ret['vat'] = float(ret['vat']) / 100 |
... | ... |
@@ -63,6 +64,8 @@ class InvoiceTable(object): |
63 | 64 |
ret['period_start'] = e['period_start'] |
64 | 65 |
if 'period_end' in k: |
65 | 66 |
ret['period_end'] = e['period_end'] |
67 |
+ if 'print_date' in k: |
|
68 |
+ ret['print_date'] = e['print_date'] |
|
66 | 69 |
|
67 | 70 |
return ret |
68 | 71 |
|
... | ... |
@@ -385,6 +385,7 @@ class PDF(object): |
385 | 385 |
desc = [] |
386 | 386 |
if 'desc' in el and el['desc'] != '': |
387 | 387 |
desc = self._splitToWidth(el['desc'], 14.0 * cm, self.font, font_size) |
388 |
+ if 'print_date' in el and el['print_date']: |
|
388 | 389 |
if 'period_start' in el and el['period_start']: |
389 | 390 |
if 'period_end' in el and el['period_end']: |
390 | 391 |
desc.extend(self._splitToWidth('Leistungszeitraum: %s - %s' % |