Override Terms Discount Amount Recalculating to incorrect amount

Issue No: AP-6403
Created 10/29/2018 11:58:20 AM
Type Bug
Priority Major
Status Closed
Resolution Fixed
Fixed Version 18.1
Description *Issue:*   The voucher discount override is not applied in the pay vouchers screen.     *Steps:*   # Create voucher with terms override. # post the voucher # Go to pay vouchers # discount is ignored when you look in pay vouchers if the date has violated the discount conditions on the terms code ## Due upon receipt terms will not show a discount manual override # Once you recalculate a terms code it no longer applies the manual override but it keeps it on the voucher entry form so there is no way to really see why it is calculating as it is.   *Expected results*   * When you review pay vouchers you should see the discount override on the pay vouchers screen. * Manual overrides should expire just like a standard discount ** think of times when you are just adjusting the discount by .01 cent * *{color:#ff0000}Warning should be give before a discount is updated{color}*       This issue relates to i21 Help Desk ticket. Click the link below to go to Help Desk ticket.   [HDTN-220152 - Pay Vouchers not displaying discount amount|https://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-220152]               Background: It is normal to process eChecks at a later date that the actual draft from the bank.   Ex: The due date an discount date for BL-348693 is 10/27/2018. Since that hit on Friday, they may not actually enter it in the system until Monday 10/29/2018. Since we default to actual date 10/29/2018, when changing the payment date back to 10/27/2018, it asks if we want to recaculate discount/terms. I would say yes. I expect my original Overwritten Discount Amount to reflect in discount field. NOT, the terms discount.   Steps:   1. Bring up an invoice and set the terms override as checked.   2. Enter an amount different from the normal terms discount and post.   !pastedImage_d107321_0.png!   3. Change the payment date to a valid discount date.   4. Say Yes to recalculate   !pastedImage_d107321_1.png!   Issue #1: Notice that the discount amount is different from original overwritten amount.   !pastedImage_d107321_2.png!   Issue #2: If I drill to the voucher from the Pay Voucher Detail Grid, it will auto recalc the terms discount without question and change the voucher. Now the information is gone from the voucher header before I even have a chance to pay it. This means the customer cannot drill to the voucher when there is discount, or it will remove discount information.   !pastedImage_d107321_3.png!