fix: filter not work

This commit is contained in:
Methapon2001 2025-01-20 13:27:44 +07:00
parent 9fd2064a71
commit 5fe6ce1d5c

View file

@ -107,7 +107,14 @@ export class InvoiceController extends Controller {
},
},
],
payment: pay === undefined ? undefined : pay ? { isNot: null } : null,
payment:
pay !== undefined
? {
paymentStatus: pay
? PaymentStatus.PaymentSuccess
: { not: PaymentStatus.PaymentSuccess },
}
: undefined,
quotationId,
quotation: {
registeredBranch: {