genracion de reportes por saldos temporales

This commit is contained in:
2026-03-06 16:09:45 -06:00
parent fa0a394bbd
commit be3150b53c
21 changed files with 2701 additions and 455 deletions

View File

@@ -34,16 +34,16 @@ class ClientProviderService:
def get_all(
db: Session,
tenant_id: int,
company_id: int,
company_id: Optional[int],
skip: int = 0,
limit: int = 50,
filters: Optional[Dict[str, Any]] = None,
) -> Tuple[List[ClientProvider], int]:
"""Get all clients/providers for a tenant/company with pagination"""
query = db.query(ClientProvider).filter(
ClientProvider.tenant_id == tenant_id,
ClientProvider.company_id == company_id,
)
"""Get all clients/providers for a tenant with pagination"""
query = db.query(ClientProvider).filter(ClientProvider.tenant_id == tenant_id)
if company_id is not None:
query = query.filter(ClientProvider.company_id == company_id)
# Apply filters if provided
if filters: