Include attention flag and comment in order and check-in list exports

This commit is contained in:
Raphael Michel
2019-09-08 20:52:15 +02:00
parent 262fb82237
commit 0bcc784aaf
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -109,6 +109,8 @@ class OrderListExporter(MultiSheetListExporter):
headers.append(_('Invoice numbers'))
headers.append(_('Sales channel'))
headers.append(_('Requires special attention'))
headers.append(_('Comment'))
yield headers
@@ -179,6 +181,8 @@ class OrderListExporter(MultiSheetListExporter):
row.append(', '.join([i.number for i in order.invoices.all()]))
row.append(order.sales_channel)
row.append(_('Yes') if order.checkin_attention else _('No'))
row.append(order.comment or "")
yield row
def iterate_fees(self, form_data: dict):