_Main/BL/Type_DispatchShiftSchedulingInformation/StaticMethod_GenerateDispatchData.qbl
@@ -46,13 +46,7 @@ unitIndex := guard( unitIndexTree.Root().Child( unitHandle ), null( NamedValue )); if( not isnull( unitIndex )){ unit := units.Element( unitIndex.GetValueAsNumber() ); temp1 := unit; temp2 := unit.Parent(); while( not isnull( temp1.Parent())){ temp2 := temp1; temp1 := temp1.Parent(); } factory := temp2; factory := LocalTool::GetFactoryByUnit( unit ); } }