From 7e38c18352f1b45a266327599f3af4e667dcdb4d Mon Sep 17 00:00:00 2001 From: puriphatt Date: Mon, 24 Feb 2025 16:49:13 +0700 Subject: [PATCH] feat: add cancelIncludeDebitNote parameter to quotation model and store --- src/components/11_credit-note/FormCredit.vue | 1 + src/stores/quotations/index.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/11_credit-note/FormCredit.vue b/src/components/11_credit-note/FormCredit.vue index f104e91c..b6e2bf1f 100644 --- a/src/components/11_credit-note/FormCredit.vue +++ b/src/components/11_credit-note/FormCredit.vue @@ -34,6 +34,7 @@ const quotationId = defineModel('quotationId', { v-model:value="quotationId" :label="$t('general.select', { msg: $t('quotation.title') })" :params="{ + cancelIncludeDebitNote: true, hasCancel: true, }" /> diff --git a/src/stores/quotations/index.ts b/src/stores/quotations/index.ts index 4331ba2c..ad203cee 100644 --- a/src/stores/quotations/index.ts +++ b/src/stores/quotations/index.ts @@ -72,6 +72,7 @@ export const useQuotationStore = defineStore('quotation-store', () => { hasCancel?: boolean; includeRegisteredBranch?: boolean; forDebitNote?: boolean; + cancelIncludeDebitNote?: boolean; }) { const res = await api.get>('/quotation', { params,