refactor: hide add customer at quotation

This commit is contained in:
Thanaphon Frappet 2024-10-29 09:03:54 +07:00
parent 62b21f185e
commit 9e28126f80
2 changed files with 3 additions and 2 deletions

View file

@ -27,6 +27,7 @@ defineProps<{
employee?: boolean;
title?: string;
inputOnly?: boolean;
hideAdd?: boolean;
onCreate?: boolean;
}>();
@ -151,7 +152,7 @@ onMounted(async () => {
<template #option="{ scope }">
<q-item
clickable
v-if="scope.index === 0"
v-if="scope.index === 0 && !hideAdd"
@click.stop="$emit('addCustomer')"
>
<q-item-section>

View file

@ -964,6 +964,7 @@ const view = ref<View>(View.Quotation);
>
<template #issue-info>
<FormAbout
hide-add
class="col-12 col-md-8"
input-only
v-model:branch-id="quotationFormData.registeredBranchId"
@ -971,7 +972,6 @@ const view = ref<View>(View.Quotation);
quotationFormData.customerBranchId
"
:readonly="readonly"
@add-customer=""
/>
</template>
</QuotationFormMetadata>