This commit is contained in:
AdisakKanthawilang 2025-02-27 15:20:13 +07:00
parent 3591dff755
commit 7b57a073d6

View file

@ -5008,7 +5008,6 @@ export class CommandController extends Controller {
statusReport: "DONE",
}));
await this.posMasterActRepository.save(data);
await Promise.all(
posMasters.map(async (item) => {
if (item.posMasterChild != null && item.posMasterChild.current_holderId != null) {
@ -5049,6 +5048,7 @@ export class CommandController extends Controller {
createdAt: new Date(),
lastUpdatedAt: new Date(),
commandNo: body.refIds[0].commandNo,
refCommandNo: body.refIds[0].commandNo,
commandYear: body.refIds[0].commandYear,
posNo: item.posMaster.posMasterNo,
posNoAbb: shortName,
@ -5058,7 +5058,7 @@ export class CommandController extends Controller {
commandName: body.refIds[0].commandName,
remark: body.refIds[0].remark,
};
const dataAct = new ProfileActposition();
Object.assign(dataAct, metaAct);
const historyAct = new ProfileActpositionHistory();