Add validation on our uspARProcessInvoice script to remove discounts in payment details that was not fully paid

Issue No: AR-5721
Created 10/15/2017 11:21:50 PM
Type Bug-QC
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-202832 - A/R is out of balance to Aging to GL|http://helpdesk.irely.com/iRelyi21live/i21/#/HD/Ticket/?ticket=HDTN-202832]     Steps to reproduce:   1. Restore latest Rhoads database   2. Go to Sales \| Receive Payments Detail   3. Open an existing RCV with CF invoice not yet fully paid   Expected result: When CF Transactions was processed to invoices, it's payment detail should eliminate the discount amount if the invoice was not fully paid yet.   Actual result: Discount amount is displayed in RCVs with CF invoice not yet fully paid