SELECT PIPRowBatches.ID FROM PartialInvProtocolBatches PIPRowBatches JOIN MainInvProtocolBatches MIPRowBatches ON PIPRowBatches.MIPBatch_ID = MIPRowBatches.ID WHERE PIPRowBatches.Parent_ID = :OBJID AND MIPRowBatches.StoreBatch_ID = :AStoreBatch_ID AND (PIPRowBatches.QUnit = :AQUnit OR 'A' = :AQUnitNotSet) ORDER BY PIPRowBatches.QUnit
Generated by ABRA Software a.s. 27.10.2021 16:34:10