Commit 31984c5c authored by Élie Bouttier's avatar Élie Bouttier
Browse files

fix merge

parent e8803743
......@@ -414,10 +414,7 @@ class InvoiceAdmin(admin.ModelAdmin):
p = canvas.Canvas(buffer)
produits = []
for item in invoice.items.all():
description = item.description
if item.notes:
description += '\n' + item.notes
produits += [(description, item.quantity, item.price)]
produits += [(item.description, item.notes, item.quantity, item.price)]
adt = invoice.buyer.adherent
facture(p, dt=invoice.date, ref=invoice.reference, produits=produits, adt=str(adt), mail=adt.email,
tel=adt.phone_number, addr=adt.address, draft=draft)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment