fix: hide btn on pay condition full & status pending

This commit is contained in:
puriphatt 2024-11-01 11:12:43 +07:00
parent 1325f79bc2
commit 57f1d6665f

View file

@ -1528,7 +1528,13 @@ const view = ref<View>(View.Quotation);
</MainButton>
</template>
<div v-if="view === View.Invoice">
<div
v-if="
view === View.Invoice &&
quotationFormData.quotationStatus !== 'PaymentPending' &&
quotationFormData.payCondition !== 'Full'
"
>
<MainButton
solid
icon="mdi-account-multiple-check-outline"
@ -1542,6 +1548,7 @@ const view = ref<View>(View.Quotation);
{{ $t('quotation.approveInvoice') }}
</MainButton>
</div>
<div
class="row"
style="gap: var(--size-2)"