diff --git a/src/controllers/05-quotation-controller.ts b/src/controllers/05-quotation-controller.ts index 39649b8..053b678 100644 --- a/src/controllers/05-quotation-controller.ts +++ b/src/controllers/05-quotation-controller.ts @@ -465,11 +465,11 @@ export class QuotationController extends Controller { create: rest.paySplit?.map((v) => ({ paymentStatus: "PaymentWait", amount: v.amount, - date: new Date(), + date: v.date, })) || { paymentStatus: "PaymentWait", amount: price.finalPrice, - date: new Date(), + date: v.date, }, }, statusOrder: +(rest.status === "INACTIVE"), @@ -720,7 +720,7 @@ export class QuotationController extends Controller { create: rest.paySplit?.map((v) => ({ paymentStatus: "PaymentWait", amount: v.amount, - date: new Date(), + date: v.date, })) || { paymentStatus: "PaymentWait", amount: price.finalPrice,