SELECT ID FROM PLMWorkplaces A WHERE A.Hidden = 'N' AND A.CRPPlan > 0 AND ((:MOBILE <> 0) AND (A.WorkplaceType > 0) OR (:MOBILE = 0) AND (A.WorkplaceType <= 0)) and exists(select ID from PLMWorkPlaceShiftTypes WT where WT.parent_id = A.ID )
Generated by ABRA Software a.s. 27.10.2021 16:34:49