summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indoteknik_custom/models/account_move.py3
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>