fix act position condition
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m6s

This commit is contained in:
Warunee Tamkoo 2026-05-12 23:12:01 +07:00
parent 334ce4f5fc
commit 94edcf5320
2 changed files with 6 additions and 5 deletions

View file

@ -1088,11 +1088,10 @@ export class WorkflowController extends Controller {
if (body.isAct) {
// ตำแหน่งของคนที่เลือกไปรักษาการ
let childPosition = "";
if (x.posType === "อำนวยการ" || x.posType === "บริหาร") {
childPosition = x.posExecutiveName || "";
if (!childPosition) {
childPosition = `${x.position || ""}ระดับ${x.posLevel || ""}`.trim();
}
if (x.positionSignChild) {
childPosition = x.positionSignChild;
} else if (x.posExecutiveName) {
childPosition = x.posExecutiveName;
} else {
childPosition = `${x.position || ""}${x.posLevel || ""}`.trim();
}

View file

@ -128,4 +128,6 @@ export class viewDirectorActing {
key: string;
@ViewColumn()
positionSign: string;
@ViewColumn()
positionSignChild: string;
}