Spaces:
Runtime error
Runtime error
Update invoice.py
Browse files- invoice.py +2 -2
invoice.py
CHANGED
|
@@ -614,8 +614,8 @@ def write_invoice_to_xlsx(template_path: str, out_path: str, payload: Dict[str,
|
|
| 614 |
_set_named(ws, "GST_CELL", payload["gst"])
|
| 615 |
_set_named(ws, "TOTAL_CELL", payload["total"])
|
| 616 |
_replace_token(ws, "SUBTOTAL", f"{payload.get('subtotal', 0):.2f}")
|
| 617 |
-
_replace_token(ws, "GST", f"{payload.get('gst', 0):.2f}")
|
| 618 |
-
_replace_token(ws, "TOTAL", f"{payload.get('total', 0):.2f}")
|
| 619 |
|
| 620 |
# ---- 5) Logo + print setup ----
|
| 621 |
_place_logo(ws)
|
|
|
|
| 614 |
_set_named(ws, "GST_CELL", payload["gst"])
|
| 615 |
_set_named(ws, "TOTAL_CELL", payload["total"])
|
| 616 |
_replace_token(ws, "SUBTOTAL", f"{payload.get('subtotal', 0):.2f}")
|
| 617 |
+
#_replace_token(ws, "GST", f"{payload.get('gst', 0):.2f}")
|
| 618 |
+
#_replace_token(ws, "TOTAL", f"{payload.get('total', 0):.2f}")
|
| 619 |
|
| 620 |
# ---- 5) Logo + print setup ----
|
| 621 |
_place_logo(ws)
|