{% extends "ui/templates/base/layout.html" %} {% block content %} {% set agent = live_result.agent if live_result else None %} {% set tally = live_result.tally if live_result else None %} {% set accounting = live_result.accounting if live_result else None %}

Tools · Tally · Phase 6

Depreciation (Income Tax)

Calculate Income-tax depreciation, approve the reviewed draft and—only after explicit confirmation—post the approved Journal to the mapped company currently open in TallyPrime.

Back to Tally
{% if calculated %}
Income-tax depreciation draft calculated and saved. It still requires explicit Partner approval before Tally write-back.
{% endif %} {% if approved %}
Depreciation draft approved. No Tally voucher has been created yet.
{% endif %} {% if posted %}
Approved depreciation Journal posted to TallyPrime successfully.
{% endif %} {% if command_error %}
{{ command_error }}
{% endif %}
ERP Local Agent
{{ 'Connected' if agent_online else 'Offline' }}
Agent {{ agent.version if agent and agent.version else '-' }}
TallyPrime
{{ 'Connected' if tally and tally.connected else 'Not connected' }}
{{ tally.company_count if tally else 0 }} currently loaded
Phase 6
{{ 'Available' if agent and agent.tally_writeback_capability else 'Update Agent' }}
Controlled approved write-back
{% if preview %} {% set coverage = preview.transaction_coverage %}
{% if coverage.complete %}Phase 4 transaction data completely covers {{ preview.fy_start }} to {{ preview.fy_end }}.{% else %}Phase 4 transaction data does not fully cover this financial year. Synchronize the missing period before calculation.{% endif %}

These ledger selections are stored with the draft. Phase 6 can post the Journal only after the saved draft is explicitly approved.

Fixed Asset Ledgers

Rate is selected by the reviewer. Transaction date is used only as a review proxy for the 180-day put-to-use test; verify where actual put-to-use differs.

{% for row in preview.fixed_asset_ledgers %}{% else %}{% endfor %}
LedgerOpening WDVAdditions ≥180 daysAdditions <180 daysReductionsRate
{{ row.ledger_name }}
{{ row.parent_group }}
{{ '%.2f'|format(row.opening_wdv) }}{{ '%.2f'|format(row.additions_full_rate) }}{{ '%.2f'|format(row.additions_half_rate) }}{{ '%.2f'|format(row.reductions) }}
No ledgers under Fixed Assets were found in the synchronized master snapshot.
{% endif %} {% if depreciation_run %}

Draft Calculation #{{ depreciation_run.id }}

{{ depreciation_run.company_name }} · {{ depreciation_run.fy_start }} to {{ depreciation_run.fy_end }}

Total Depreciation
₹ {{ '%.2f'|format(depreciation_run.total_depreciation) }}
Journal: Debit {{ depreciation_run.depreciation_expense_ledger or 'Depreciation' }} and credit {{ depreciation_run.depreciation_reserve_ledger or 'Depreciation Reserve' }} for ₹ {{ '%.2f'|format(depreciation_run.total_depreciation) }}. Voucher date will be {{ depreciation_run.fy_end }} and reference ARRR-ITDEP-{{ depreciation_run.id }}.
Draft Status
{{ depreciation_run.status|upper }}
Approved
{{ depreciation_run.approved_at_utc or 'Not yet approved' }}
Tally Posting
{{ depreciation_run.tally_posting_status|upper if depreciation_run.tally_posting_status else 'NOT POSTED' }}
{% if depreciation_run.tally_posting_error %}
{{ depreciation_run.tally_posting_error }}
{% endif %}
{% for row in depreciation_run.lines %}{% endfor %}
LedgerRateDepreciationClosing WDV
{{ row.ledger_name }}{{ '%.2f'|format(row.rate_percent) }}%{{ '%.2f'|format(row.depreciation_amount) }}{{ '%.2f'|format(row.closing_wdv) }}
{% if depreciation_run.status == 'draft' %}
Partner Approval Required

Review the company, financial year, ledgers, rates and total before approving. Approval does not post anything to Tally.

{% elif depreciation_run.status == 'approved' %}
Controlled Tally Write-back

This creates a real Journal voucher in the mapped company currently open in TallyPrime. The Local Agent re-checks the Tally GUID immediately before posting. Successful drafts cannot be posted twice.

{% elif depreciation_run.status == 'posted' %}
Posted successfully. Posted at {{ depreciation_run.posted_at_utc }}{% if depreciation_run.posted_voucher_number %}; Tally voucher/reference ID {{ depreciation_run.posted_voucher_number }}{% endif %}. This draft is locked against duplicate posting.
{% endif %} {% if depreciation_run.writeback_attempts %}

Write-back Audit Trail

{% for row in depreciation_run.writeback_attempts %}{% endfor %}
AttemptStartedStatusTally resultError
#{{ row.id }}{{ row.started_at_utc }}{{ row.status|upper }}Created {{ row.tally_created }} · Errors {{ row.tally_errors }}{% if row.tally_last_voucher_id %} · ID {{ row.tally_last_voucher_id }}{% endif %}{{ row.error_message or '' }}
{% endif %}
{% endif %}
Phase 6 enables only controlled depreciation Journal write-back. All master and transaction synchronization remain read-only; no other Tally create/alter/delete operation is enabled.
{% endblock %}