fix act position condition
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m6s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m6s
This commit is contained in:
parent
334ce4f5fc
commit
94edcf5320
2 changed files with 6 additions and 5 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -128,4 +128,6 @@ export class viewDirectorActing {
|
|||
key: string;
|
||||
@ViewColumn()
|
||||
positionSign: string;
|
||||
@ViewColumn()
|
||||
positionSignChild: string;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue