diff --git a/src/controllers/04-invoice-controller.ts b/src/controllers/04-invoice-controller.ts index 94794c3..5fbe720 100644 --- a/src/controllers/04-invoice-controller.ts +++ b/src/controllers/04-invoice-controller.ts @@ -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: {