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.