From 72b0e896425179ff0d22ba494052cd24e5f45b41 Mon Sep 17 00:00:00 2001 From: Aif Date: Tue, 14 Oct 2025 14:57:58 +0700 Subject: [PATCH] feat: i18n register name en --- src/pages/11_credit-note/MainPage.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pages/11_credit-note/MainPage.vue b/src/pages/11_credit-note/MainPage.vue index cbaeb520..f085a8fa 100644 --- a/src/pages/11_credit-note/MainPage.vue +++ b/src/pages/11_credit-note/MainPage.vue @@ -406,10 +406,12 @@ watch( value: item.row.quotation.customerBranch.customer .customerType === 'CORP' - ? item.row.quotation.customerBranch.registerName + ? $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}`, + ? `${item.row.quotation.customerBranch.firstName || ''} ${item.row.quotation.customerBranch.lastName || ''}` + : `${item.row.quotation.customerBranch.firstNameEN || ''} ${item.row.quotation.customerBranch.lastNameEN || ''}`, }, { label: $t('requestList.quotationCode'),