From e1c27681672837e28b17c022bd0215c37719ad28 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Mon, 24 Feb 2025 16:45:38 +0700 Subject: [PATCH] fix: wrong coniditon --- src/controllers/05-quotation-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/05-quotation-controller.ts b/src/controllers/05-quotation-controller.ts index 08c0c3b..9ae2ae1 100644 --- a/src/controllers/05-quotation-controller.ts +++ b/src/controllers/05-quotation-controller.ts @@ -216,7 +216,7 @@ export class QuotationController extends Controller { }, }, ]), - isDebitNote: hasCancel && cancelIncludeDebitNote ? true : false, + isDebitNote: hasCancel && cancelIncludeDebitNote ? undefined : false, code, payCondition, registeredBranch: isSystem(req.user) ? undefined : { OR: permissionCond(req.user) },