Discount disappear after posting payment

Issue No: AP-7698
Created 8/27/2019 12:00:41 AM
Type Bug
Priority Blocker
Status Closed
Resolution Fixed
Fixed Version 19.1
Description This issue relates to i21 Help Desk ticket. Click the link below to go to Help Desk ticket.   [HDTN-235200 - Discount calculation issue with Conoco (CONPHI)|https://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-235200]           Steps:     # Set the vendor to always take discount. # Create a new payment record for vendor code "CONPHI". # Notice that there discounts available in BL- 5116 of $202.91 # Select another voucher with a discount to pay. Make sure to take the discount. In my example, I selected BL-5030 with discount $181.79. # Post Preview to validate the GL entries with discount and POST. # Click New and bring up vendor CONPHI, search for discount, example BL-5116, notice the discount is now missing. # The Pay Voucher Detail Amount Due is reduced by discount amount. # The Voucher Payment Amount shows discount Amount. Should be $0 # The Terms Discount is now $0   Issue:   Posting is removing discount for non-paid vouchers.   The unpaid Voucher Payment Amount shows discount Amount, Terms Discount is now $0     Accepted Criteria:   # Discount should not disappear in Payment Voucher > New # The Amount Due should not change in Payment Voucher > New # The Payment Amount should be $0 in the Voucher # The Terms Discount should still display the discount in the Voucher   !pastedImage_d123292_0.png|height=530,width=894!   !pastedImage_d123292_1.png|height=544,width=899!   !pastedImage_d123292_2.png|height=235,width=910!   !pastedImage_d123292_3.png|height=419,width=901!   !pastedImage_d123292_4.png|height=540,width=913!   !pastedImage_d123292_5.png|height=536,width=872!   !pastedImage_d123292_6.png|height=544,width=925!