SELECT ID FROM ServiceNotifications A WHERE (A.ServicedObject_ID = :ServicedObject_ID) and (A.IsActive = 'A') and ( ((A.FromServiceDocState_ID = :FromState_ID) and (A.ToServiceDocState_ID = :ToState_ID)) or ((A.FromServiceDocState_ID is null) and (A.ToServiceDocState_ID = :ToState_ID)) )
Generated by ABRA Software a.s. 27.10.2021 16:35:46