fix: update invoice pdf to use total_ht_net instead of total_ht
This commit is contained in:
parent
bcaa621432
commit
cd9dd9348d
1 changed files with 2 additions and 2 deletions
|
|
@ -286,11 +286,11 @@ class EmailQueue:
|
||||||
y -= 0.8 * cm
|
y -= 0.8 * cm
|
||||||
pdf.setFont("Helvetica-Bold", 11)
|
pdf.setFont("Helvetica-Bold", 11)
|
||||||
pdf.drawString(12 * cm, y, "Total HT:")
|
pdf.drawString(12 * cm, y, "Total HT:")
|
||||||
pdf.drawString(15 * cm, y, f"{doc.get('total_ht') or 0:.2f}€")
|
pdf.drawString(15 * cm, y, f"{doc.get('total_ht_net') or 0:.2f}€")
|
||||||
|
|
||||||
y -= 0.6 * cm
|
y -= 0.6 * cm
|
||||||
pdf.drawString(12 * cm, y, "TVA (20%):")
|
pdf.drawString(12 * cm, y, "TVA (20%):")
|
||||||
tva = (doc.get("total_ttc") or 0) - (doc.get("total_ht") or 0)
|
tva = (doc.get("total_ttc") or 0) - (doc.get("total_ht_net") or 0)
|
||||||
pdf.drawString(15 * cm, y, f"{tva:.2f}€")
|
pdf.drawString(15 * cm, y, f"{tva:.2f}€")
|
||||||
|
|
||||||
y -= 0.6 * cm
|
y -= 0.6 * cm
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue