Enrich ERP and Tally GSTIN display
This commit is contained in:
@@ -261,7 +261,9 @@
|
||||
<th class="px-4 py-3 text-left font-semibold text-slate-600">ERP Scope</th>
|
||||
<th class="px-4 py-3 text-left font-semibold text-slate-600">Tally Company</th>
|
||||
<th class="px-4 py-3 text-left font-semibold text-slate-600">GUID</th>
|
||||
<th class="px-4 py-3 text-left font-semibold text-slate-600">GSTIN</th>
|
||||
<th class="px-4 py-3 text-left font-semibold text-slate-600">ERP GSTIN</th>
|
||||
<th class="px-4 py-3 text-left font-semibold text-slate-600">Tally GSTIN</th>
|
||||
<th class="px-4 py-3 text-left font-semibold text-slate-600">GSTIN Match</th>
|
||||
<th class="px-4 py-3 text-left font-semibold text-slate-600">Loaded</th>
|
||||
<th class="px-4 py-3 text-right font-semibold text-slate-600">Action</th>
|
||||
</tr>
|
||||
@@ -280,7 +282,25 @@
|
||||
</td>
|
||||
<td class="px-4 py-3 font-medium text-slate-900">{{ mapping.company_name }}</td>
|
||||
<td class="px-4 py-3 font-mono text-xs text-slate-600">{{ mapping.tally_guid }}</td>
|
||||
<td class="px-4 py-3 text-slate-600">{{ mapping.gstin or '-' }}</td>
|
||||
<td class="px-4 py-3 text-slate-600">
|
||||
{% if mapping.erp_gstins %}
|
||||
{% for gstin in mapping.erp_gstins %}<div class="font-mono text-xs">{{ gstin }}</div>{% endfor %}
|
||||
{% else %}-{% endif %}
|
||||
</td>
|
||||
<td class="px-4 py-3 font-mono text-xs text-slate-600">{{ mapping.tally_gstin_display or '-' }}</td>
|
||||
<td class="px-4 py-3">
|
||||
{% if mapping.gstin_match_status == 'matched' %}
|
||||
<span class="rounded-full bg-emerald-50 px-2 py-1 text-xs font-semibold text-emerald-700">Matched</span>
|
||||
{% elif mapping.gstin_match_status == 'mismatch' %}
|
||||
<span class="rounded-full bg-red-50 px-2 py-1 text-xs font-semibold text-red-700">Mismatch</span>
|
||||
{% elif mapping.gstin_match_status == 'tally_missing' %}
|
||||
<span class="rounded-full bg-amber-50 px-2 py-1 text-xs font-semibold text-amber-700">Tally GSTIN unavailable</span>
|
||||
{% elif mapping.gstin_match_status == 'erp_missing' %}
|
||||
<span class="rounded-full bg-amber-50 px-2 py-1 text-xs font-semibold text-amber-700">ERP GSTIN unavailable</span>
|
||||
{% else %}
|
||||
<span class="rounded-full bg-slate-100 px-2 py-1 text-xs font-semibold text-slate-600">Unavailable</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="px-4 py-3">
|
||||
<span class="rounded-full px-2 py-1 text-xs font-semibold {% if mapping.currently_loaded %}bg-emerald-50 text-emerald-700{% else %}bg-slate-100 text-slate-600{% endif %}">
|
||||
{{ 'Yes' if mapping.currently_loaded else 'No' }}
|
||||
@@ -314,7 +334,7 @@
|
||||
{% if tally.companies %}
|
||||
<div class="overflow-x-auto">
|
||||
<table class="min-w-full divide-y divide-slate-200 text-sm">
|
||||
<thead class="bg-slate-50"><tr><th class="px-4 py-3 text-left font-semibold text-slate-600">Company</th><th class="px-4 py-3 text-left font-semibold text-slate-600">GUID</th><th class="px-4 py-3 text-left font-semibold text-slate-600">GSTIN</th></tr></thead>
|
||||
<thead class="bg-slate-50"><tr><th class="px-4 py-3 text-left font-semibold text-slate-600">Company</th><th class="px-4 py-3 text-left font-semibold text-slate-600">GUID</th><th class="px-4 py-3 text-left font-semibold text-slate-600">Tally GSTIN</th></tr></thead>
|
||||
<tbody class="divide-y divide-slate-100">
|
||||
{% for company in tally.companies %}
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user