Import Voucher from Origin does not import discount when imported after discount day

Issue No: AP-6404
Created 10/29/2018 12:40:01 PM
Type Bug
Priority Major
Status Closed
Resolution Fixed
Fixed Version 18.1
Description 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 possible to import vouchers from origin later than the discount due date, specifically for vouchers that are eCheck. The payment happens in the bank prior to the user actually processing the payment. So the eCheck date 10/27/2018, but the date of import from origin is 10/29/2018. This is normal date scenario.   Steps:   1. Vendor Setup (main entity and location)   * Discount Days = 3 * Due Day = 3 * 1.25% discount   2. Create an origin payable for the vendor setting the discount due date in prior day than today.   3. Import Voucher from Origin.   4. Open the voucher and notice that the discount amount and override discount is not updated. Expected: discount amout from origin aptrxmst and discount override checked.   !pastedImage_d107324_0.png!   !pastedImage_d107324_1.png!     !pastedImage_d107324_2.png!   select dtmDateImported, aptrx_disc_rev_dt, aptrx_disc_amt, * from tblAPaptrxmst where aptrx_vnd_no = 'MARPAY'   !pastedImage_d107324_3.png!