Select
C.StoreCard_ID
From
LogStoreContents C
JOIN LogStorePositions P ON C.Parent_ID = P.ID
Where
P.ReservedForDoc_ID = :ReservedForDoc_ID and
P.ReservedForDocType = :ReservedForDocType and
C.QuantityAwaited > 0
Generated by ABRA Software a.s. 27.10.2021 16:35:19