mirror of
https://framagit.org/la-chariotte/la-chariotte.git
synced 2025-05-02 11:52:27 +02:00
add date and note in csv
This commit is contained in:
parent
d20cafe5db
commit
39dcaf637d
1 changed files with 4 additions and 0 deletions
|
@ -374,6 +374,8 @@ class ExportGroupedOrderToCSVView(GroupedOrderExportView):
|
|||
row.append("Prix de la commande")
|
||||
row.append("Mail")
|
||||
row.append("Téléphone")
|
||||
row.append("Date et Heure")
|
||||
row.append("Note")
|
||||
writer.writerow(row)
|
||||
|
||||
row = ["", "Prix unitaire TTC (€)"]
|
||||
|
@ -393,6 +395,8 @@ class ExportGroupedOrderToCSVView(GroupedOrderExportView):
|
|||
row.append(str(order.price).replace(".", ","))
|
||||
row.append(order.author.email)
|
||||
row.append(f"'{order.author.phone}")
|
||||
row.append(f'\'{order.created_date.strftime("%d %B %Y %H:%M:%S")}')
|
||||
row.append(f"'{order.note}")
|
||||
writer.writerow(row)
|
||||
|
||||
# write total row
|
||||
|
|
Loading…
Reference in a new issue