From f211d9e6a871579e202f6c8d64e9cc54c3024abf Mon Sep 17 00:00:00 2001 From: A R R R Associates Date: Sun, 6 Sep 2026 21:12:14 +0530 Subject: [PATCH] Add TDS review drilldowns and exclude capital accounts --- .../templates/accounting/tds_compliance.html | 36 ++++++++++++-- app/modules/documents/agent_package.py | 2 +- .../erp_local_agent/__init__.py | 2 +- .../erp_local_agent/commands.py | 48 ++++++++++++++++++- 4 files changed, 81 insertions(+), 7 deletions(-) diff --git a/app/modules/accounting/templates/accounting/tds_compliance.html b/app/modules/accounting/templates/accounting/tds_compliance.html index 8f6dc0e..70febb4 100644 --- a/app/modules/accounting/templates/accounting/tds_compliance.html +++ b/app/modules/accounting/templates/accounting/tds_compliance.html @@ -6,7 +6,9 @@
{{ k|replace('_',' ') }}
{{ v }}
- {% if k == 'tds_not_deducted' and v %} + {% if k == 'candidate_transactions' and v %} + + {% elif k == 'tds_not_deducted' and v %} {% elif k == 'short_deduction' and v %} @@ -42,6 +44,12 @@ {{ row.short_deduction }}
+ {% if row.tds_not_deducted %} + {% endif %} + {% if row.below_threshold %} + + {% endif %}
@@ -73,7 +97,7 @@
- {% for x in review.transactions %}{% endfor %}
DatePartyLedger / RuleBaseExpectedActualLiabilityStatus
{{ x.date }}{{ x.party }}{{ x.nature_ledger }}
{{ x.rule_name }} · {{ x.legacy_section }}
{{ '%.2f'|format(x.taxable_base) }}{{ '%.2f'|format(x.expected_tds) }}{{ '%.2f'|format(x.actual_tds) }}{{ '%.2f'|format(x.liability) }}{{ x.status }}
{% endif %}{% if history %}

TDS Analysis History

{% for row in history %}{% endfor %}
#{{ row.id }}{{ row.financial_year }}{{ row.period_from }} → {{ row.period_to }}Excel · PDF
{% endif %} + {% for x in review.transactions %}{% endfor %}
DatePartyLedger / RuleBaseExpectedActualLiabilityStatus
{{ x.date }}{{ x.party }}{{ x.nature_ledger }}
{{ x.rule_name }} · {{ x.legacy_section }}{% if x.parent_group %} · Group: {{ x.parent_group }}{% endif %}
{{ '%.2f'|format(x.taxable_base) }}{{ '%.2f'|format(x.expected_tds) }}{{ '%.2f'|format(x.actual_tds) }}{{ '%.2f'|format(x.liability) }}{{ x.status }}
{% endif %}{% if history %}

TDS Analysis History

{% for row in history %}{% endfor %}
#{{ row.id }}{{ row.financial_year }}{{ row.period_from }} → {{ row.period_to }}Excel · PDF
{% endif %} {% if review %}