diff options
| author | FIN-IT_AndriFP <andrifebriyadiputra@gmail.com> | 2025-12-17 16:29:17 +0700 |
|---|---|---|
| committer | FIN-IT_AndriFP <andrifebriyadiputra@gmail.com> | 2025-12-17 16:29:17 +0700 |
| commit | 52754dc7663c45a7609e5d4a57119ef26ecb5190 (patch) | |
| tree | 7502e7b75b657c02da1d94aabc09cfed23f88293 | |
| parent | bb48a99ab5b666b858c4bb9d410c698dada7d542 (diff) | |
(andri) fix grand total reminder inv mail
| -rw-r--r-- | indoteknik_custom/models/account_move.py | 3 |
1 files changed, 2 insertions, 1 deletions
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""" <tr> <td>{idx}</td> |
