no message
This commit is contained in:
parent
ec052d8997
commit
5e361e375b
1 changed files with 5 additions and 5 deletions
|
|
@ -2932,9 +2932,9 @@ export class CommandController extends Controller {
|
|||
) {
|
||||
await Promise.all(
|
||||
body.refIds.map(async (item) => {
|
||||
const profile = await this.profileEmployeeRepository.findOne({
|
||||
const profile = await this.posMasterRepository.findOne({
|
||||
where: { id: item.refId },
|
||||
relations: ["posType", "posLevel"],
|
||||
relations: ["current_holder", "current_holder.posType", "current_holder.posLevel"],
|
||||
});
|
||||
if (!profile) {
|
||||
throw new HttpError(HttpStatus.BAD_REQUEST, "ไม่พบ profile ดังกล่าว");
|
||||
|
|
@ -2955,9 +2955,9 @@ export class CommandController extends Controller {
|
|||
positionSalaryAmount: item.positionSalaryAmount,
|
||||
mouthSalaryAmount: item.mouthSalaryAmount,
|
||||
posNo: "",
|
||||
position: profile.position,
|
||||
positionType: profile.posType?.posTypeName || null,
|
||||
positionLevel: profile.posLevel?.posLevelName || null,
|
||||
position: profile.current_holder?.position || null,
|
||||
positionType: profile.current_holder?.posType?.posTypeName || null,
|
||||
positionLevel: profile.current_holder?.posLevel?.posLevelName || null,
|
||||
refCommandNo: `${item.commandNo}/${Extension.ToThaiYear(item.commandYear)}`,
|
||||
templateDoc: item.templateDoc,
|
||||
order: dest_item == null ? 1 : dest_item.order + 1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue