mirror of
https://github.com/almet/copanier.git
synced 2025-04-28 19:42:37 +02:00
Fix Delivery.when => Delivery.from_date
This commit is contained in:
parent
0480cc585a
commit
4cb3e10e93
2 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@ from openpyxl.writer.excel import save_virtual_workbook
|
|||
def summary(delivery):
|
||||
wb = Workbook()
|
||||
ws = wb.active
|
||||
ws.title = f"{delivery.producer} {delivery.when.date()}"
|
||||
ws.title = f"{delivery.producer} {delivery.from_date.date()}"
|
||||
ws.append(["ref", "produit", "prix", "unités", "total"])
|
||||
for product in delivery.products:
|
||||
wanted = delivery.product_wanted(product)
|
||||
|
@ -25,7 +25,7 @@ def summary(delivery):
|
|||
def full(delivery):
|
||||
wb = Workbook()
|
||||
ws = wb.active
|
||||
ws.title = f"{delivery.producer} {delivery.when.date()}"
|
||||
ws.title = f"{delivery.producer} {delivery.from_date.date()}"
|
||||
headers = ["ref", "produit", "prix"] + [e for e in delivery.orders] + ["total"]
|
||||
ws.append(headers)
|
||||
for product in delivery.products:
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<h2>{{ delivery.producer }} {{ delivery.when.date() }} - liste d'émargement</h2>
|
||||
<h2>{{ delivery.producer }} {{ delivery.from_date.date() }} - liste d'émargement</h2>
|
||||
{% for email, order in delivery.orders.items() %}
|
||||
<h3>{{ email }}</h3>
|
||||
<table class="order">
|
||||
|
|
Loading…
Reference in a new issue