Improve the frontend and fix TODOs

This commit is contained in:
Urtzi Alfaro
2025-10-24 13:05:04 +02:00
parent 07c33fa578
commit 61376b7a9f
100 changed files with 8284 additions and 3419 deletions

View File

@@ -208,7 +208,7 @@ async def delete_supplier(
@router.get(
route_builder.build_base_route("suppliers/count"),
route_builder.build_base_route("count"),
response_model=dict
)
async def count_suppliers(
@@ -219,8 +219,8 @@ async def count_suppliers(
try:
service = SupplierService(db)
# Use search with high limit to get all suppliers
search_params = SupplierSearchParams(limit=10000)
# Use search with maximum allowed limit to get all suppliers
search_params = SupplierSearchParams(limit=1000)
suppliers = await service.search_suppliers(
tenant_id=UUID(tenant_id),
search_params=search_params