ตำแหน่งออกคำสั่ง
This commit is contained in:
parent
5d268bdd6f
commit
83a5d96548
1 changed files with 5 additions and 4 deletions
|
|
@ -6636,11 +6636,12 @@ export class CommandController extends Controller {
|
|||
].find(Boolean) ?? "";
|
||||
|
||||
// 6. หา position ที่ถูกเลือกแบบปลอดภัย
|
||||
const selectedPosition = item.posMaster?.positions?.find(
|
||||
(x) => x.positionIsSelected === true,
|
||||
);
|
||||
const selectedPosition = item.posMaster?.positions;
|
||||
const positionName =
|
||||
selectedPosition?.positionName ?? item.posMaster?.current_holder?.position ?? "-";
|
||||
selectedPosition
|
||||
?.map((pos) => pos.positionName)
|
||||
.filter(Boolean)
|
||||
.join(", ") ?? "-";
|
||||
|
||||
// 7. สร้าง metaAct แบบปลอดภัย
|
||||
const metaAct = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue