diff --git a/src/utils/string-template.ts b/src/utils/string-template.ts index b62164f2..b4fbcab0 100644 --- a/src/utils/string-template.ts +++ b/src/utils/string-template.ts @@ -74,7 +74,7 @@ const templates = { const branch = v.request.quotation.customerBranch; return ( `${i + 1}. ` + - ` ${v.request.code}_${branch.customer.customerType === 'PERS' ? `นายจ้าง ${branch.namePrefix}. ${branch.firstNameEN} ${branch.lastNameEN} `.toUpperCase() : branch.registerName}_` + + ` ${v.request.code}_${branch.customer.customerType === 'PERS' ? `${branch.namePrefix}. ${branch.firstNameEN} ${branch.lastNameEN} `.toUpperCase() : branch.registerName}_` + `${employee.namePrefix}. ${employee.firstNameEN} ${employee.lastNameEN} `.toUpperCase() + `${!!v.failedType && v.failedType !== 'other' ? `${i18n.global.t(`taskOrder.${v.failedType}`)}` : !!v.failedComment ? v.failedComment : ''}` );