Fix bug แก้ไขอัตรากำลัง แล้วระบบแจ้ง error #211
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m12s

This commit is contained in:
harid 2026-02-11 15:45:03 +07:00
parent 1f809d3e22
commit b11d7e45e2

View file

@ -1510,7 +1510,8 @@ export class PositionController extends Controller {
posMaster.orgRootId !== null &&
posMaster.orgChild1Id == null &&
posMaster.orgChild2Id == null &&
posMaster.orgChild3Id == null
posMaster.orgChild3Id == null &&
posMaster.orgChild4Id == null
) {
shortName = posMaster.orgRoot.orgRootShortName;
orgId = posMaster.orgRootId;
@ -1518,7 +1519,8 @@ export class PositionController extends Controller {
posMaster.orgRootId !== null &&
posMaster.orgChild1Id !== null &&
posMaster.orgChild2Id == null &&
posMaster.orgChild3Id == null
posMaster.orgChild3Id == null &&
posMaster.orgChild4Id == null
) {
shortName = posMaster.orgChild1.orgChild1ShortName;
orgId = posMaster.orgChild1Id;
@ -1526,7 +1528,8 @@ export class PositionController extends Controller {
posMaster.orgRootId !== null &&
posMaster.orgChild1Id !== null &&
posMaster.orgChild2Id !== null &&
posMaster.orgChild3Id == null
posMaster.orgChild3Id == null &&
posMaster.orgChild4Id == null
) {
shortName = posMaster.orgChild2.orgChild2ShortName;
orgId = posMaster.orgChild2Id;
@ -1534,7 +1537,8 @@ export class PositionController extends Controller {
posMaster.orgRootId !== null &&
posMaster.orgChild1Id !== null &&
posMaster.orgChild2Id !== null &&
posMaster.orgChild3Id !== null
posMaster.orgChild3Id !== null &&
posMaster.orgChild4Id == null
) {
shortName = posMaster.orgChild3.orgChild3ShortName;
orgId = posMaster.orgChild3Id;
@ -1542,7 +1546,8 @@ export class PositionController extends Controller {
posMaster.orgRootId !== null &&
posMaster.orgChild1Id !== null &&
posMaster.orgChild2Id !== null &&
posMaster.orgChild3Id !== null
posMaster.orgChild3Id !== null &&
posMaster.orgChild4Id !== null
) {
shortName = posMaster.orgChild4.orgChild4ShortName;
orgId = posMaster.orgChild4Id;