genracion de reportes por saldos temporales
This commit is contained in:
@@ -65,7 +65,7 @@ class PedimentosService:
|
||||
def get_all(
|
||||
db: Session,
|
||||
tenant_id: int,
|
||||
company_id: int,
|
||||
company_id: Optional[int],
|
||||
skip: int = 0,
|
||||
limit: int = 100,
|
||||
filters: Optional[Dict[str, Any]] = None,
|
||||
@@ -76,6 +76,7 @@ class PedimentosService:
|
||||
Args:
|
||||
db: Database session
|
||||
tenant_id: Tenant ID
|
||||
company_id: Optional Company ID
|
||||
skip: Number of records to skip
|
||||
limit: Maximum number of records to return
|
||||
filters: Optional filters dict
|
||||
@@ -83,8 +84,10 @@ class PedimentosService:
|
||||
Returns:
|
||||
Tuple of (list of pedimentos, total count)
|
||||
"""
|
||||
query = db.query(Pedimentos).filter(
|
||||
Pedimentos.tenant_id == tenant_id, Pedimentos.company_id == company_id)
|
||||
query = db.query(Pedimentos).filter(Pedimentos.tenant_id == tenant_id)
|
||||
|
||||
if company_id is not None:
|
||||
query = query.filter(Pedimentos.company_id == company_id)
|
||||
|
||||
if filters:
|
||||
if filters.get("status"):
|
||||
|
||||
Reference in New Issue
Block a user