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'),