fix: employee customerBranch display (registerName)

This commit is contained in:
puriphatt 2024-10-21 15:02:37 +07:00
parent 2abdc093a1
commit 55a443521f

View file

@ -162,7 +162,9 @@ defineEmits<{
</span>
{{
scope.opt.customer.customerType === 'CORP'
? scope.opt.customerName
? $i18n.locale === 'eng'
? scope.opt.registerNameEN
: scope.opt.registerName
: $i18n.locale === 'eng'
? `${scope.opt.firstNameEN} ${scope.opt.lastNameEN}` ||
'-'
@ -217,7 +219,9 @@ defineEmits<{
</span>
{{
scope.opt.customer.customerType === 'CORP'
? scope.opt.customerName
? $i18n.locale === 'eng'
? scope.opt.registerNameEN
: scope.opt.registerName
: $i18n.locale === 'eng'
? `${scope.opt.firstNameEN} ${scope.opt.lastNameEN}` || '-'
: `${scope.opt.firstName} ${scope.opt.lastName}` || '-'