Payment entry submission error

Dear team,
I need to you help on this message,
When i submit payment against invoice, showing Row #1: Allocated Amount 13941.5 cannot be greater than outstanding amount -3535.5.

And also i found that this invoice is referencing another invoice.

How can i fix that.

Very helpful to get solution for my past one week