From 37f6ef898c69304f7a75f58c6c390989db16fcab Mon Sep 17 00:00:00 2001 From: A R R R Associates Date: Thu, 10 Sep 2026 12:00:09 +0530 Subject: [PATCH] Add bill-wise drilldown for sundry creditors ageing --- .../accounting/sundry_creditors_aging.html | 141 +++++++++++++++++- 1 file changed, 134 insertions(+), 7 deletions(-) diff --git a/app/modules/accounting/templates/accounting/sundry_creditors_aging.html b/app/modules/accounting/templates/accounting/sundry_creditors_aging.html index 038c6ba..1f658b8 100644 --- a/app/modules/accounting/templates/accounting/sundry_creditors_aging.html +++ b/app/modules/accounting/templates/accounting/sundry_creditors_aging.html @@ -49,13 +49,90 @@ Export Excel -
- - - - {% for row in analysis.parties %}{% else %}{% endfor %} - -
Party≤180 Days>180 DaysClosing>180 Paid LaterStill UnpaidFinal Payment Date
{{ row.party_name }}{{ '%.2f'|format(row.within_180) }}{{ '%.2f'|format(row.over_180) }}{{ '%.2f'|format(row.closing_balance) }}{{ '%.2f'|format(row.over_180_paid_later) }}{{ '%.2f'|format(row.over_180_still_unpaid) }}{{ row.final_payment_date or '—' }}
No non-zero Sundry Creditors were found for the selected FY.
+
+
+ Click a party name to see all surviving FIFO lots, or click the ≤180 / >180 amount to drill directly into that age bucket. Purchase vouchers, opening/brought-forward balances and subsequent-payment status are shown from the same FIFO calculation used by the summary. +
+
+ + + + {% for row in analysis.parties %} + {% set party_index = loop.index0 %} + + + + + + + + + + + + + {% else %} + + {% endfor %} + +
Party≤180 Days>180 DaysClosing>180 Paid LaterStill UnpaidFinal Payment Date
+ + + {% if row.within_180 > 0 %}{% else %}{{ '%.2f'|format(row.within_180) }}{% endif %} + + {% if row.over_180 > 0 %}{% else %}{{ '%.2f'|format(row.over_180) }}{% endif %} + {{ '%.2f'|format(row.closing_balance) }}{{ '%.2f'|format(row.over_180_paid_later) }}{{ '%.2f'|format(row.over_180_still_unpaid) }}{{ row.final_payment_date or '—' }}
No non-zero Sundry Creditors were found for the selected FY.
+
FIFO closing-balance detail ({{ analysis.details|length }}) @@ -63,4 +140,54 @@
{% endif %}
+ + {% endblock %}