select ICN.ID from IssuedCreditNotes ICN join DocQueues DQ on DQ.ID = ICN.DocQueue_ID join Periods P on P.ID = ICN.Period_ID where DQ.Code = :DocCode and ICN.OrdNumber = :DocNr and P.Code = :DocYear
Generated by ABRA Software a.s. 27.10.2021 16:34:09