From c4f088c5cbe197bcd2a2604da0ffeb40156606f8 Mon Sep 17 00:00:00 2001 From: Aif Date: Tue, 14 Oct 2025 14:30:08 +0700 Subject: [PATCH] feat: i18n --- src/pages/10_invoice/MainPage.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/pages/10_invoice/MainPage.vue b/src/pages/10_invoice/MainPage.vue index ef20cd7f..8057693d 100644 --- a/src/pages/10_invoice/MainPage.vue +++ b/src/pages/10_invoice/MainPage.vue @@ -394,8 +394,14 @@ watch( { label: $t('general.customer'), value: - item.row.quotation.customerBranch.registerName || - `${item.row.quotation.customerBranch?.firstName || '-'} ${item.row.quotation.customerBranch?.lastName || ''}`, + item.row.quotation.customerBranch.customer + .customerType === 'CORP' + ? $i18n.locale === 'tha' + ? item.row.quotation.customerBranch.registerName + : item.row.quotation.customerBranch.registerNameEN + : $i18n.locale === 'tha' + ? `${item.row.quotation.customerBranch?.firstName || '-'} ${item.row.quotation.customerBranch?.lastName || ''}` + : `${item.row.quotation.customerBranch?.firstNameEN || '-'} ${item.row.quotation.customerBranch?.lastNameEN || ''}`, }, { label: $t('taskOrder.issueDate'),