Receive Payments - When unposted and modified, Write Off Amount reverts to original value

Issue No: AR-10041
Created 3/26/2019 3:48:54 AM
Type Bug-QC
Priority Blocker
Status Closed
Resolution Fixed
Fixed Version 19.1
Description Steps to reproduce:   1. Go to Sales \| Activities \| Receive Payments   2. Click New   Type = Cash Receipts   Customer = Galcon Holdings (or any)   Payment Method = Cash   3. In the grid area, select an invoice to pay   4. Enter value in Write Off Amount (e.g. 30.00)   5. Set Payment   !pastedImage_d114902_0.png|height=479,width=1200!   6. Click Post   !pastedImage_d114902_1.png|height=478,width=1200!   7. Check Post History   !pastedImage_d114902_2.png|height=310,width=1200!   8. Unpost the Receive Payment   9. Modify Write Off Amount (e.g. 50.00) and set Payment   !pastedImage_d114902_3.png|height=476,width=1200!   10. Click Post   Expected result: Modified Write Off Amount value (e.g. 50.00) should be displayed.   Actual result: Original Write Off Amount value (e.g. 30.00) is retained/displayed.   !pastedImage_d114902_4.png|height=480,width=1200!   In Post History, posted Write Off Amount is still the original value.   !pastedImage_d114902_5.png|height=518,width=1200!     11. Click Unpost again   12. Modify Write Off Amount (e.g. 60.00) and set Payment   !pastedImage_d114902_6.png|height=348,width=1200!   13. Click Post   Expected result: Modified Write Off Amount value (e.g. 60.00) should be displayed.   Actual result: Original Write Off Amount value (e.g. 30.00) is retained/displayed.   !pastedImage_d114902_7.png!     Check Post Preview. Entries are incorrect with some amount for 'Realized Gain or Loss'   !pastedImage_d114902_8.png!