{% extends "ui/templates/base/layout.html" %} {% block content %}

Accounting Engine · Phase 18

Automatic Accounting Preparation

Create native Tally voucher drafts automatically from existing Bank Analyzer and E-Way Bill source data. Purchase and Sales drafts retain stock-item level quantity, unit, rate, HSN and taxable value for native Tally inventory vouchers.

{% if message %}
{{ message }}
{% endif %} {% if error %}
{{ error }}
{% endif %}
{% if selected_client and selected_tally_guid %}

Bank Statements

Receipt / Payment / Contra

Bank Analyzer rows are converted into native Receipt, Payment or Contra voucher drafts. The bank ledger is chosen from the client's classified Chart of Accounts.

E-Way Bill · Inward

Stock-item Purchase

Each invoice retains every item, HSN, quantity, unit, rate, taxable value and tax amounts and creates a native Purchase voucher draft.

E-Way Bill · Outward

Stock-item Sales

Outward invoices create native Sales voucher drafts with item-wise inventory allocations and output-tax ledger lines.

Bank Analyzer Transactions

One click creates the proposed Receipt / Payment / Contra draft. Posting remains subject to the common review and Tally preflight controls.

{% if not sources.bank %}
No existing Bank Analyzer transaction table containing client/date/narration/amount fields was discovered in the current ERP schema. Existing Bank Analyzer data has not been changed.
{% elif not bank_rows %}
No Bank Analyzer transactions were found for the selected client/period.
{% else %}
{% for row in bank_rows %} {% endfor %}
Date Narration / Party Direction Amount Bank/Cash Ledger Action
{{ row.date or '-' }}
{{ row.party or row.narration or '-' }}
{% if row.party and row.narration %}
{{ row.narration }}
{% endif %} {% if row.category %}
Category: {{ row.category }}
{% endif %} {% if row.reference %}
Ref: {{ row.reference }}
{% endif %}
{{ row.direction }} ₹{{ '%.2f'|format(row.amount) }}
{% if row.contra_hint %}Contra hint detected{% else %}Auto ledger matching from party/category{% endif %}
{% endif %}

E-Way Bill Purchase / Sales Invoices

Invoices are grouped by E-Way Bill + invoice + party. Every underlying item remains separate in the voucher draft.

{% if not sources.eway %}
No existing E-Way Bill item table containing E-Way Bill number, item description and taxable value was discovered in the current ERP schema. Existing E-Way Bill features have not been modified.
{% elif not eway_invoices %}
No E-Way Bill item invoices were found for this client/period/filter.
{% else %}
{% for inv in eway_invoices %}
{{ inv.direction }} {{ inv.items|length }} stock item(s)

{{ inv.party_name or 'Party not available' }}

GSTIN {{ inv.party_gstin or '-' }} · Invoice {{ inv.invoice_no or '-' }} · {{ inv.invoice_date or '-' }} · EWB {{ inv.eway_bill_no or '-' }}

Taxable ₹{{ '%.2f'|format(inv.taxable_value) }}
CGST {{ '%.2f'|format(inv.cgst) }} · SGST {{ '%.2f'|format(inv.sgst) }} · IGST {{ '%.2f'|format(inv.igst) }} · Cess {{ '%.2f'|format(inv.cess) }}
{% for item in inv.items %} {% endfor %}
Stock Item / DescriptionHSNQtyUnitRateTaxable
{{ item.item_name or '-' }} {{ item.hsn or '-' }} {{ item.quantity }} {{ item.unit or '-' }} {{ '%.4f'|format(item.rate) }} ₹{{ '%.2f'|format(item.taxable_value) }}
{% endfor %}
{% endif %}

Manual entry remains only as a fallback

Manual / adjustment voucher creation has not been removed. It remains useful for provisions, accruals, depreciation, reclassification, audit adjustments and source transactions that cannot yet be resolved automatically.

Open Manual / Review Voucher Engine
{% endif %}
{% endblock %}