SELECT PIPRows.ID FROM PartialInvProtocolRows PIPRows JOIN MainInvProtocolRows MIPRows ON MIPRows.ID = PIPRows.MIPRow_ID JOIN StoreCards SC ON SC.ID = MIPRows.StoreCard_ID WHERE PIPRows.PIPPosition_ID = :OBJID AND SC.Category IN (1, 2)
Generated by ABRA Software a.s. 27.10.2021 16:34:10