feat: Implement client and provider management dashboard
- Added data table component for displaying clients and providers with infinite scroll functionality. - Created dropdown actions for each client/provider including copy ID, copy RFC, view details, edit, toggle status, and delete. - Implemented dialogs for creating, editing, viewing details, and deleting clients/providers. - Integrated API calls for fetching, creating, editing, deleting, and toggling status of clients/providers. - Enhanced error handling and loading states for better user experience. - Updated server-side logic to handle pagination and company selection for client/provider data retrieval.
This commit is contained in:
@@ -37,7 +37,7 @@ class Class(Base, TenantScopedMixin):
|
||||
["company_id"], ["a76.company.id"], name="fk_classes_company"
|
||||
),
|
||||
ForeignKeyConstraint(
|
||||
["client_id"], ["a76.client_provider.id"], name="fk_classes_client"
|
||||
["client_id"], ["a76.clients_and_providers.id"], name="fk_classes_client"
|
||||
),
|
||||
ForeignKeyConstraint(
|
||||
["material_key"],
|
||||
@@ -48,7 +48,7 @@ class Class(Base, TenantScopedMixin):
|
||||
"tenant_id",
|
||||
"company_id",
|
||||
"class_code",
|
||||
name="uq_classes_client_id_class_code",
|
||||
name="ufa_classes_client_id_class_code",
|
||||
),
|
||||
{"schema": "a76"},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user