Merge pull request #5711 from nabinhait/payment_fix_10

[fix] Advance payment adjustment in sales/purchase invoice