Receive Payment Detail does not calculate correctly after modification of saved/posted record

Issue No: AR-5211
Created 8/21/2017 11:09:46 PM
Type Bug
Priority Major
Status Closed
Resolution Fixed
Fixed Version 17.1
Description This issue relates to i21 Help Desk ticket. Click the link below to go to Help Desk ticket.   [HDTN-201973 - Cannot Enter Payments with Discounts|http://helpdesk.irely.com/iRelyi21live/i21/#/HD/Ticket/?ticket=HDTN-201973]           Database: 99     Version: 17.1.0804.152   Steps to Recreate:   1. Summarize an invoice from Card Fueling Invoice. Make sure the customer selected has discount terms.   2. Update AR.   3. Open the debit memo and verify that there is a value in Discount Available.   4. Go into Receive Payment Detail and click New.   Issue:   * The Amount Due is incorrect when there is Discount Available. Amount Due = Invoice Total - Discount - Interest - Previous Payments. * If we make this change, please make sure to test payment with discount. Test save and post. !pastedImage_d80907_0.png!   5. Enter a payment with discount. The amount due for the invoice should be $0 now.   !pastedImage_d80907_1.png!   6. Save the payment.   7. Modify the payment amount to equal invoice total and 0 out the discount.   !pastedImage_d80907_2.png!   8. Save.   Issue: After saving, the discount amount is still there, should be $0. The Amount shows negative the discount amount, should be $0.   !pastedImage_d80907_3.png!