select MAX(DocDate$Date) from PaymentsForDocument(:DocumentType, :OBJID, 0)
Generated by ABRA Software a.s. 27.10.2021 16:34:10