select A.ID from StoreDocuments2 A join StoreDocuments B on B.ID = A.Parent_ID where A.ProvideRow_ID = :OBJID and B.DocumentType = '21'
Generated by ABRA Software a.s. 27.10.2021 16:34:11