diff --git a/app/modules/clients/repository.py b/app/modules/clients/repository.py index 09c2aa2..dc6673f 100644 --- a/app/modules/clients/repository.py +++ b/app/modules/clients/repository.py @@ -107,7 +107,7 @@ def list_clients( client_type=client_type, client_group_id=client_group_id, include_archived=include_archived, ) total = db.execute(select(func.count()).select_from(stmt.subquery())).scalar_one() - per_page = min(max(int(per_page or 25), 1), 100) + per_page = min(max(int(per_page or 25), 1), 5000) pages = max(ceil(total / per_page), 1) page = min(max(int(page or 1), 1), pages) offset = (page - 1) * per_page diff --git a/app/modules/clients/templates/clients/list.html b/app/modules/clients/templates/clients/list.html index 3d3b6dc..8eadf9e 100644 --- a/app/modules/clients/templates/clients/list.html +++ b/app/modules/clients/templates/clients/list.html @@ -34,7 +34,7 @@ {% include "modules/clients/templates/clients/partials/table.html" %} - {% if meta %} + {% if meta and not partner_client_view %}
| Code | +Client | +Group | +Branch | +Status | ++ |
|---|---|---|---|---|---|
| {{ row.client_code }} | +
+ {{ row.client_name }}
+ {{ row.pan or row.gstin or '-' }}
+ |
+
+ {% if row.client_group_name %}
+ {{ row.client_group_name }}
+ {{ row.group_relationship or row.client_group_code }}
+ {% else %}-{% endif %}
+ |
+ {{ row.branch_name or row.assoc_firm_branch_id or row.branch_id or '-' }} | ++ {% if row_status == 'active' %}Active + {% elif row_status == 'archived' %}Archived + {% else %}Inactive{% endif %} + | +Open | +
| No clients found. | |||||
| No clients match the selected filters. | |||||
| {{ row.client_code }} | -
- {{ row.client_name }}
- {{ row.pan or row.gstin or '-' }}
- |
-
- {% if row.client_group_name %}
- {{ row.client_group_name }}
- {{ row.group_relationship or row.client_group_code }}
- {% else %}-{% endif %}
- |
-
- {{ row.association_type or 'legacy_firm' }}
- {{ row.assoc_created_source or 'legacy' }}
- |
+ {{ row.client_name }} {{ row.pan or row.gstin or '-' }} |
+ {% if row.client_group_name %}{{ row.client_group_name }} {{ row.group_relationship or row.client_group_code }} {% else %}-{% endif %} |
+ {{ row.association_type or 'legacy_firm' }} {{ row.assoc_created_source or 'legacy' }} |
{{ row.partner_name or row.effective_partner_id or '-' }} | {{ row.branch_name or row.assoc_firm_branch_id or row.branch_id or '-' }} | -- {% if row.status == 'active' %} - Active - {% elif row.status == 'archived' %} - Archived - {% else %} - Inactive - {% endif %} - | -- Open - | +{% if row.status == 'active' %}Active{% elif row.status == 'archived' %}Archived{% else %}Inactive{% endif %} | +Open |
| No clients found. | -||||||||||||
| No clients found. | ||||||||||||
Owned clients and review-assigned clients, with service count, open tasks and overdue items.
{{ c.client_code }}{% if c.gstin %} · {{ c.gstin }}{% elif c.pan %} · {{ c.pan }}{% endif %}
Owned clients and review-assigned clients, with existing service, task and overdue totals.
+| Code | +Client | +PAN / GSTIN | +Services | +Tasks | +Overdue | +Status | ++ |
|---|---|---|---|---|---|---|---|
| {{ c.client_code }} | +{{ c.client_name }} | +{{ c.pan or c.gstin or '-' }} | +{{ c.service_count }} | +{{ c.task_count }} | +{{ c.overdue_count }} | ++ {% if row_status == 'active' %}Active + {% elif row_status == 'archived' %}Archived + {% else %}Inactive{% endif %} + | +Open | +
| No assigned clients found. | |||||||
| No clients match the search. | |||||||