refactor: add required validation to quotation selection and enhance button disable logic in credit and debit note forms

This commit is contained in:
puriphatt 2025-02-20 13:46:06 +07:00
parent a6a997e55f
commit ea1c1b71fc
5 changed files with 8 additions and 3 deletions

View file

@ -987,7 +987,6 @@ onMounted(async () => {
/>
<!-- #TODO add openProductDialog at @add-product-->
<ProductExpansion
v-if="view === null"
:readonly
@ -1179,6 +1178,9 @@ onMounted(async () => {
<SaveButton
v-if="!readonly && pageState.mode === 'create'"
:disabled="
selectedWorkerItem.length === 0 && productService.length === 0
"
@click="submit"
:label="true ? $t('debitNote.label.submit') : $t('general.save')"
:icon="