mirror of
https://github.com/almet/copanier.git
synced 2025-04-28 19:42:37 +02:00
Use product.label in reports
This commit is contained in:
parent
b190f1dd4e
commit
8324136533
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ def summary(delivery):
|
|||
ws.append(
|
||||
[
|
||||
product.ref,
|
||||
product.name,
|
||||
product.label,
|
||||
product.price,
|
||||
wanted,
|
||||
round(product.price * wanted, 2),
|
||||
|
@ -33,7 +33,7 @@ def full(delivery):
|
|||
headers = ["ref", "produit", "prix"] + [e for e in delivery.orders] + ["total"]
|
||||
ws.append(headers)
|
||||
for product in delivery.products:
|
||||
row = [product.ref, product.name, product.price]
|
||||
row = [product.ref, product.label, product.price]
|
||||
for order in delivery.orders.values():
|
||||
wanted = order.products.get(product.ref)
|
||||
row.append(wanted.wanted if wanted else 0)
|
||||
|
|
Loading…
Reference in a new issue