From 0e6bee7b626d06f2aa916b2e00999ca61b7b9d29 Mon Sep 17 00:00:00 2001 From: Aif Date: Tue, 14 Oct 2025 14:46:12 +0700 Subject: [PATCH] feat: i18n registerNameEN --- src/pages/12_debit-note/MainPage.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pages/12_debit-note/MainPage.vue b/src/pages/12_debit-note/MainPage.vue index 1397b8fc..f3d48726 100644 --- a/src/pages/12_debit-note/MainPage.vue +++ b/src/pages/12_debit-note/MainPage.vue @@ -425,10 +425,12 @@ watch( label: $t('quotation.customer'), value: item.row.customerBranch.customer.customerType === 'CORP' - ? item.row.customerBranch.registerName + ? $i18n.locale === 'tha' + ? item.row.customerBranch.registerName + : item.row.customerBranch.registerNameEN : $i18n.locale === 'tha' - ? `${item.row.customerBranch.firstName} ${item.row.customerBranch.lastName}` - : `${item.row.customerBranch.firstNameEN} ${item.row.customerBranch.lastNameEN}`, + ? `${item.row.customerBranch.firstName || ''} ${item.row.customerBranch.lastName || ''}` + : `${item.row.customerBranch.firstNameEN || ''} ${item.row.customerBranch.lastNameEN || ''}`, }, { label: $t('requestList.quotationCode'),