add : filter invoice by bill id

This commit is contained in:
2026-02-17 11:19:43 +03:30
parent 00404c38d2
commit 37e56e5e5f
3 changed files with 10 additions and 0 deletions
@@ -28,6 +28,10 @@ export class InvoicesRepository extends EntityRepository<Invoice> {
where.company = { id: queryDto.companyId };
}
if (queryDto.billId) {
where.bill = { id: queryDto.billId };
}
if (queryDto.since || queryDto.to) {
const dateConditions = [];