feat: update expired status if edit (re-open)

This commit is contained in:
Methapon Metanipat 2024-11-26 09:52:56 +07:00
parent e29ee46a2a
commit 09b3097d02

View file

@ -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