select Max(OrdNumber) from {DOCUMENTTABLE} DT where DT.DocQueue_ID = :DocQueue_ID and DT.Period_ID = :Period_ID
Generated by ABRA Software a.s. 27.10.2021 16:34:08