diff --git a/src/controllers/PositionController.ts b/src/controllers/PositionController.ts index d8e9bd7e..eb4ea958 100644 --- a/src/controllers/PositionController.ts +++ b/src/controllers/PositionController.ts @@ -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;