{% extends "base.html" %} {% block content %}

TDS & Withholding Tax

TDS Entry & Liability

Calculate missing/short TDS, prepare structured ERP posting instructions, then post only after explicit user action. Prepared instructions are future-agent ready and idempotently referenced.

Tally
{% if saved %}
TDS instruction updated.
{% endif %}{% if error %}
{{ error }}
{% endif %}
{% if review %}

Unbooked / short TDS

{% for x in review.transactions if x.liability>0 %}
Party
{{ x.party }}
Voucher
{{ x.date }} · {{ x.voucher_number }}
Rule
{{ x.rule_name }}
Expected
{{ '%.2f'|format(x.expected_tds) }}
Already booked
{{ '%.2f'|format(x.actual_tds) }}
{% else %}
No positive liability identified in this scan.
{% endfor %}
{% endif %}{% if instructions %}

Prepared / Posted Instructions

{% for i in instructions %}
{{ i.erp_reference }} · {{ i.party_ledger }}
{{ i.statutory_reference }} · Status {{ i.status }}
₹{{ '%.2f'|format(i.liability_amount) }}
{% if i.status!='posted' %}
{% else %}
Posted to Tally{% if i.tally_voucher_id %} · Voucher {{ i.tally_voucher_id }}{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endblock %}