From 09b3097d0217a721b0b7074116092659facd757c Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Tue, 26 Nov 2024 09:52:56 +0700 Subject: [PATCH] feat: update expired status if edit (re-open) --- src/controllers/05-quotation-controller.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/05-quotation-controller.ts b/src/controllers/05-quotation-controller.ts index 0cb18c7..3f27708 100644 --- a/src/controllers/05-quotation-controller.ts +++ b/src/controllers/05-quotation-controller.ts @@ -747,6 +747,7 @@ export class QuotationController extends Controller { data: { ...rest, ...price, + quotationStatus: record.quotationStatus === "Expired" ? "Issued" : rest.quotationStatus, statusOrder: +(rest.status === "INACTIVE"), worker: sortedEmployeeId.length > 0