genracion de reportes por saldos temporales
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user