diff --git a/src/controllers/05-payment-controller.ts b/src/controllers/05-payment-controller.ts index 58fba4f..36d433e 100644 --- a/src/controllers/05-payment-controller.ts +++ b/src/controllers/05-payment-controller.ts @@ -174,7 +174,7 @@ export class QuotationPayment extends Controller { where: { id: quotation.id }, data: { quotationStatus: - paymentSum._sum.amount || 0 >= quotation.finalPrice + (paymentSum._sum.amount || 0) >= quotation.finalPrice ? "PaymentSuccess" : "PaymentInProcess", requestData: await (async () => {