Receive Payment - Unable to unpost if discount applied is saved in another RCV

Issue No: AR-10049
Created 3/26/2019 11:14:45 PM
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 customer)   Payment Method = Cash   3. Select an invoice to pay   4. Enter value in Discount Taken   5. Click Save.(Don't post).   !pastedImage_d114945_0.png|height=480,width=1200!     6. Create a new Receive Payment   Type = Cash Receipts   Customer = Same as above   Payment Method = Cash   7. Select the same invoice as above   8. Enter a full write off amount   9. Recalculate   10. Click Post   !pastedImage_d114945_1.png|height=477,width=1200!   11. Click Unpost   Expected result: Receive Payment should be unposted without error   Actual result: Receive Payment is not unposted; Error message is displayed   !pastedImage_d114945_2.png|height=518,width=1200!   Notes:   RCV 409 is not posted so there's nothing to unpost:   !pastedImage_d114945_3.png|height=258,width=1200!