add : filter invoice by bill id
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user