ERPNext version is 10.1.11
When doing Payment Entry, I am noticing that the outstanding is giving the new outstanding after the payment done (which is the the outstanding before the payment - the allocated amount), but this only appears at user display (it is not stored in the database) because once I do refresh for the submitted payment, the outstanding is coming back to become the outstanding before doing the payment (which is given from the database).
Is this bug or it is designed to work like this?
If it is designed to work like this, can I know why? Because this will cause confuse when printing the Payment Entry (receipt) as it will display the updated outstanding, but this amount will differ when opening the payment next time as the refresh will fetch other outstanding amount from the database.
I had the same problem today, and could over come it after finding out the reason which can be considered as a bug to be fixed. I use version 12. Solution: When you create a payment entry, you have to do the following steps in order:
add information except the allocation (the reference invoice)
Save (don’t submit)
Add the reference (invoice number and allocation amount)
Submit If you do it by this order, the allocation will be saved, and the invoice will be connected to the payment.