Work with data on payments sorted by document sequence.