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

Tools · Accounting Intelligence

Purchase Review Board

Unified Phase 9 review queue for GSTR-2B purchases and linked E-Invoice/E-Way Bill enrichment. Review, correct or bulk-confirm high-confidence suggestions. Nothing is posted to Tally.

{% if message %}
{{ message }}
{% endif %} {% if error %}
{{ error }}
{% endif %}
{% if selected_client %} {% endif %}
{% if selected_client and counts %}
{% for label,value,klass in [('Total',counts.total,''),('Reviewed',counts.reviewed,'text-emerald-700'),('Pending',counts.pending,''),('High Confidence',counts.high,'text-blue-700'),('Exceptions',counts.exceptions,'text-amber-700'),('Enriched',counts.enriched,'')] %}
{{ label }}
{{ value }}
{% endfor %}
{% if result %}

Purchase Queue

{{ result.total }} records · page {{ result.page }} of {{ result.pages }}

{% for pair in result.rows %}{% set row=pair[0] %}{% set enrich=pair[1] %}{% set suggested=nature_by_id.get(row.suggested_nature_id) if row.suggested_nature_id else None %}{% set final=nature_by_id.get(row.final_nature_id) if row.final_nature_id else None %} {% else %}{% endfor %}
Supplier / InvoiceSourceTaxableSuggestionFinal TreatmentReview
{% if row.review_status!='reviewed' and suggested and row.suggested_confidence>=85 %}{% endif %}
{{ row.supplier_name or row.supplier_gstin }}
{{ row.supplier_gstin or '-' }}
{{ row.invoice_number }} · {{ row.invoice_date }}
GSTR-2B{% if enrich %}+{{ enrich }} enrichment{% endif %}
₹{{ '%.2f'|format(row.taxable_value) }}
Invoice ₹{{ '%.2f'|format(row.invoice_value) }}
{% if suggested %}
{{ suggested.name }}{{ row.suggested_confidence }}%
{{ row.suggested_ledger_name or 'No mapped Tally ledger' }}
{% if explanations.get(row.id) %}
Why?
    {% for x in explanations.get(row.id)[:5] %}
  • • {{ x }}
  • {% endfor %}
{% endif %}{% else %}Review required{% endif %}
{% if row.review_status=='reviewed' %}
Reviewed
{{ final.name if final else '-' }}
{{ row.final_ledger_name or 'No ledger' }}
{% else %}Awaiting review{% endif %}
{% if row.review_status!='reviewed' %}
{% for k in ['tally_guid','status','confidence','source','supplier','return_period','page','per_page'] %}{% endfor %}
{% endif %} {% if row.review_status!='reviewed' and row.suggested_confidence < 90 %}
{% for k in ['tally_guid','status','confidence','source','supplier','return_period','page','per_page'] %}{% endfor %}
{% endif %}
{% for k in ['tally_guid','status','confidence','source','supplier','return_period','page','per_page'] %}{% endfor %}
No purchases match the selected filters.
{% if result.pages>1 %}
Page {{ result.page }} of {{ result.pages }}
{% if prev_url %}Previous{% endif %}{% if next_url %}Next{% endif %}
{% endif %}
{% endif %}{% endif %}
{% endblock %}