Files
arrr-erp/app/modules/accounting/templates/accounting/sales_ledger_learning.html
T
2026-08-23 00:10:26 +05:30

1 line
2.1 KiB
HTML

{% extends "ui/templates/base/layout.html" %}{% block content %}<div class="space-y-6"><div><p class="text-xs font-semibold uppercase tracking-[0.16em] text-emerald-700">Sales & Income</p><h1 class="mt-1 text-2xl font-semibold">Sales Ledger Learning</h1><p class="mt-1 text-sm text-slate-500">Combined reviewer-confirmed customer mappings and historical Tally Sales-ledger evidence.</p></div><section class="rounded-2xl bg-white p-5 shadow-soft"><form method="get" class="grid gap-4 md:grid-cols-[1fr_auto]"><label class="text-sm font-semibold">ERP Client<select name="client_id" required class="mt-1 w-full rounded-xl border border-slate-300 bg-white px-3 py-2"><option value="">Select client</option>{% for c in clients %}<option value="{{ c.id }}" {% if selected_client and selected_client.id==c.id %}selected{% endif %}>{{ c.client_name }}</option>{% endfor %}</select></label><div class="flex items-end"><button class="rounded-xl bg-brand-600 px-4 py-2 text-sm font-semibold text-white">Open</button></div></form></section>{% if selected_client %}<section class="rounded-2xl bg-white shadow-soft overflow-x-auto"><table class="min-w-full text-sm"><thead><tr class="border-b bg-slate-50 text-left text-xs uppercase text-slate-500"><th class="px-3 py-3">Customer</th><th class="px-3 py-3">Confirmed Sales Ledger</th><th class="px-3 py-3">Historical Ledger</th><th class="px-3 py-3">Historical Vouchers</th><th class="px-3 py-3">Reviewed Evidence</th><th class="px-3 py-3">Confidence</th></tr></thead><tbody>{% for item in learning_rows %}{% set m=item.mapping %}{% set h=item.history %}<tr class="border-b"><td class="px-3 py-3 font-semibold">{{ m.customer_name }}</td><td class="px-3 py-3">{{ m.sales_ledger_name or '—' }}</td><td class="px-3 py-3">{{ h.counter_ledger_name if h else '—' }}</td><td class="px-3 py-3">{{ h.voucher_count if h else 0 }}</td><td class="px-3 py-3">{{ m.evidence_count }}</td><td class="px-3 py-3">{{ m.confidence_percent }}%</td></tr>{% else %}<tr><td colspan="6" class="p-8 text-center text-slate-500">No learned sales-ledger mappings yet.</td></tr>{% endfor %}</tbody></table></section>{% endif %}</div>{% endblock %}