Undo option not properly working when setting amount to pay set to 0

Purchase To Pay: Outgoing Payment Version 9.31

Earlier, when you changed the amount to pay of a document to 0, clicking Undo changes, the action result was not saved and the amount to pay still remained 0 showing a deviation as well.
This has now been fixed.