diff --git a/src/controllers/05-quotation-controller.ts b/src/controllers/05-quotation-controller.ts index 8278e10..e37b4ca 100644 --- a/src/controllers/05-quotation-controller.ts +++ b/src/controllers/05-quotation-controller.ts @@ -219,7 +219,9 @@ export class QuotationController extends Controller { code, payCondition, registeredBranch: isSystem(req.user) ? undefined : { OR: permissionCond(req.user) }, - quotationStatus: forDebitNote ? { notIn: ["Issued", "Expired"] } : status, + quotationStatus: forDebitNote + ? { notIn: ["Issued", "Expired", "Accepted", "Canceled"] } + : status, requestData: hasCancel ? { some: {