From 75cbef694a21f2d37707a612b705996cac3d1744 Mon Sep 17 00:00:00 2001 From: "DESKTOP-2S5P7D1\\Windows 10" Date: Wed, 22 Jan 2025 10:13:59 +0700 Subject: [PATCH] add commander doc2 --- src/controllers/EvaluationController.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/controllers/EvaluationController.ts b/src/controllers/EvaluationController.ts index b06ad7d..3fc0d5d 100644 --- a/src/controllers/EvaluationController.ts +++ b/src/controllers/EvaluationController.ts @@ -1729,6 +1729,13 @@ export class EvaluationController { const before = structuredClone(evaluation); evaluation.step = "PREPARE_DOC_V2"; + evaluation.subjectDoc2 = evaluation.subject; + evaluation.authorDoc2 = evaluation.author; + evaluation.assignedPosition = evaluation.position; + evaluation.commanderFullnameDoc2 = evaluation.commanderFullname; + evaluation.commanderPositionDoc2 = evaluation.commanderPosition; + evaluation.commanderAboveFullnameDoc2 = evaluation.commanderAboveFullname; + evaluation.commanderAbovePositionDoc2 = evaluation.commanderAbovePosition; evaluation.datePrepareDoc2 = new Date(); evaluation.lastUpdateUserId = request.user.sub; evaluation.lastUpdateFullName = request.user.name; @@ -1786,13 +1793,6 @@ export class EvaluationController { const before = structuredClone(evaluation); evaluation.step = "PREPARE_DOC_V2"; - evaluation.subjectDoc2 = evaluation.subject; - evaluation.authorDoc2 = evaluation.author; - evaluation.assignedPosition = evaluation.position; - evaluation.commanderFullnameDoc2 = evaluation.commanderFullname; - evaluation.commanderPositionDoc2 = evaluation.commanderPosition; - evaluation.commanderAboveFullnameDoc2 = evaluation.commanderAboveFullname; - evaluation.commanderAbovePositionDoc2 = evaluation.commanderAbovePosition; evaluation.lastUpdateUserId = request.user.sub; evaluation.lastUpdateFullName = request.user.name; evaluation.lastUpdatedAt = new Date();