Problem payment voucher:
As can see from the above picture, document 171005473 was doubled/duplicated.
Solution:
----------------------------------------------------
-Please customize the sub report for payment details, refer above picture.
-the sub report will needs 2 grouping by DOCNO and PAYFORPOS.
-and the record put under group footer of PAYFORPOS.