SELECT B.ID FROM DevTimeRecords B WHERE B.DateOfRecord$DATE = ( SELECT MAX(DateOfRecord$DATE) FROM DevTimeRecords A WHERE (A.DevDocument_ID = :DevDocument_ID) and (A.DevDocumentType = :DevDocumentType) ) and (B.DevDocument_ID = :DevDocument_ID) and (B.DevDocumentType = :DevDocumentType)
Generated by ABRA Software a.s. 27.10.2021 16:34:40