From 52754dc7663c45a7609e5d4a57119ef26ecb5190 Mon Sep 17 00:00:00 2001 From: FIN-IT_AndriFP Date: Wed, 17 Dec 2025 16:29:17 +0700 Subject: (andri) fix grand total reminder inv mail --- indoteknik_custom/models/account_move.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py index e36b9920..b05ec7ff 100644 --- a/indoteknik_custom/models/account_move.py +++ b/indoteknik_custom/models/account_move.py @@ -330,7 +330,8 @@ class AccountMove(models.Model): grand_total = 0 for idx, inv in enumerate(invs, start=1): # numbering days_to_due = (inv.invoice_date_due - today).days if inv.invoice_date_due else 0 - grand_total += inv.amount_total + # grand_total += inv.amount_total + grand_total += inv.amount_residual invoice_table_rows += f""" {idx} -- cgit v1.2.3