feat: add cancelIncludeDebitNote parameter to quotation model and store

This commit is contained in:
puriphatt 2025-02-24 16:49:13 +07:00
parent b36caa48e2
commit 7e38c18352
2 changed files with 2 additions and 0 deletions

View file

@ -34,6 +34,7 @@ const quotationId = defineModel<string>('quotationId', {
v-model:value="quotationId" v-model:value="quotationId"
:label="$t('general.select', { msg: $t('quotation.title') })" :label="$t('general.select', { msg: $t('quotation.title') })"
:params="{ :params="{
cancelIncludeDebitNote: true,
hasCancel: true, hasCancel: true,
}" }"
/> />

View file

@ -72,6 +72,7 @@ export const useQuotationStore = defineStore('quotation-store', () => {
hasCancel?: boolean; hasCancel?: boolean;
includeRegisteredBranch?: boolean; includeRegisteredBranch?: boolean;
forDebitNote?: boolean; forDebitNote?: boolean;
cancelIncludeDebitNote?: boolean;
}) { }) {
const res = await api.get<PaginationResult<Quotation>>('/quotation', { const res = await api.get<PaginationResult<Quotation>>('/quotation', {
params, params,