Posting RCV with discounts and unapplied payments causing invalid payment

Issue No: AR-11037
Created 10/1/2019 10:27:13 PM
Type Bug
Priority Blocker
Status Closed
Resolution Fixed
Fixed Version 19.1
Description Steps:   1. Create new Customer.   2. Create and Post Invoice using customer in step #1.   3. Create new Payment using customer in step #1.   4. Enter discount manually for the invoice created in step #2.   Note: Payment should be zero and discount should be less than the invoice total.   5. Enter Amount paid in the header. (Unapplied amount should be equal to Amount Paid)   6. Post payment.   7. Creating of prepayment message will prompt, click OK/Yes.     Issue: It allowed to post, aging report is now unbalanced.   Acceptance: A validation message should appear and it shouldn't post.