From 72fa68462e324698fddb95e402306fe05681aed6 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Fri, 1 Nov 2024 17:54:27 +0700 Subject: [PATCH] fix: quotation card status display and i18n --- src/components/05_quotation/QuotationCard.vue | 6 ------ src/i18n/eng.ts | 11 +++++++++++ src/i18n/tha.ts | 11 +++++++++++ src/pages/05_quotation/MainPage.vue | 12 +----------- 4 files changed, 23 insertions(+), 17 deletions(-) diff --git a/src/components/05_quotation/QuotationCard.vue b/src/components/05_quotation/QuotationCard.vue index 658b6188..f0670de1 100644 --- a/src/components/05_quotation/QuotationCard.vue +++ b/src/components/05_quotation/QuotationCard.vue @@ -6,12 +6,6 @@ import KebabAction from '../shared/KebabAction.vue'; import MainButton from '../button/MainButton.vue'; defineProps<{ - type?: - | 'fullAmountCash' - | 'installmentsCash' - | 'fullAmountBill' - | 'installmentsBill' - | string; title?: string; code?: string; amount?: number; diff --git a/src/i18n/eng.ts b/src/i18n/eng.ts index 69594b8a..4e7f2e47 100644 --- a/src/i18n/eng.ts +++ b/src/i18n/eng.ts @@ -766,6 +766,17 @@ export default { BillSplit: 'Installments Bill', BillCustomSplit: 'Custom Installments Bill', }, + + status: { + Issued: 'Quotation', + Accepted: 'Customer Confirmation', + Invoice: 'Invoice', + PaymentPending: 'Payment', + PaymentInProcess: 'Payment', + PaymentSuccess: 'Issue Receipt', + ProcessComplete: 'Completed', + Canceled: 'Cancel', + }, }, flow: { diff --git a/src/i18n/tha.ts b/src/i18n/tha.ts index 47e1db66..941d3ed8 100644 --- a/src/i18n/tha.ts +++ b/src/i18n/tha.ts @@ -763,6 +763,17 @@ export default { BillSplit: 'ใบเรียกเก็บเงินแบ่งจ่าย', BillSplitCustom: 'ใบเรียกเก็บแบ่งจ่ายกำหนดเอง', }, + + status: { + Issued: 'ใบเสนอราคา', + Accepted: 'ลูกค้าตอบรับ', + Invoice: 'ใบแจ้งหนี้', + PaymentPending: 'ชำระเงิน', + PaymentInProcess: 'ชำระเงิน', + PaymentSuccess: 'ออกใบเสร็จ', + ProcessComplete: 'เสร็จสิ้น', + Canceled: 'ยกเลิก', + }, }, flow: { diff --git a/src/pages/05_quotation/MainPage.vue b/src/pages/05_quotation/MainPage.vue index 4e7af0f3..a4159e2f 100644 --- a/src/pages/05_quotation/MainPage.vue +++ b/src/pages/05_quotation/MainPage.vue @@ -559,21 +559,11 @@ async function storeDataLocal(id: string) { >