From 0dc15e34bb1d4671058acaafac93f60d730723e3 Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Fri, 1 Nov 2024 09:12:27 +0700 Subject: [PATCH] refactro: handle Receipt --- src/pages/05_quotation/QuotationForm.vue | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/pages/05_quotation/QuotationForm.vue b/src/pages/05_quotation/QuotationForm.vue index 11161b61..2466f815 100644 --- a/src/pages/05_quotation/QuotationForm.vue +++ b/src/pages/05_quotation/QuotationForm.vue @@ -304,11 +304,7 @@ async function fetchStatus() { status: getStatus(quotationFormData.value.quotationStatus, 4, 1), handler: () => { fetchReceipt(); - view.value = - quotationFormData.value.payCondition === 'Full' || - quotationFormData.value.payCondition === 'BillFull' - ? View.Receipt - : View.ReceiptPre; + view.value = View.Receipt; }, }, { @@ -864,7 +860,6 @@ function storeDataLocal() { const documentTypes: Record = { 3: 'invoice', 4: 'payment', - 6: 'receipt', 7: 'receipt', }; const documentType = documentTypes[view.value] || ''; @@ -1446,7 +1441,7 @@ const view = ref(View.Quotation);