@@ -26,7 +26,8 @@ export class InvoiceRepository extends EntityRepository<Invoice> {
|
||||
from,
|
||||
to,
|
||||
enableTax,
|
||||
requestId
|
||||
requestId,
|
||||
confirmStatus,
|
||||
} = opts;
|
||||
|
||||
const offset = (page - 1) * limit;
|
||||
@@ -45,6 +46,10 @@ export class InvoiceRepository extends EntityRepository<Invoice> {
|
||||
where.enableTax = enableTax;
|
||||
}
|
||||
|
||||
if (confirmStatus) {
|
||||
where.confirmStatus = confirmStatus;
|
||||
}
|
||||
|
||||
if (from || to) {
|
||||
where.createdAt = {};
|
||||
if (from) {
|
||||
|
||||
Reference in New Issue
Block a user