HDTN-235020 - Basis advance math doesn't add up

Issue No: GL-7265
Created 8/22/2019 10:30:11 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-235020 - Basis advance math doesn't add up|https://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-235020] This issue relates to i21 Help Desk ticket. Click the link below to go to Help Desk ticket.   [HDTN-235020 - Basis advance math doesn't add up|https://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-235020]   *STEPS:*   Create a Basis contract > add other charges and/or discounts > Distribute the ticket > Go to Advance Basis Screen > Select the created contract > Enter necessary details > Pay the voucher > Print Check   *ISSUE(S)* :   Check Stub on Basis Advance is showing information that does not calculate properly.   Not certain where the Total is coming from.   Check stub shows as follows:   !pastedImage_d123179_0.png|height=249,width=720!     There are a number of issues with this Checkstub. The units do not print correctly, and the Sub Total is completely incorrect, and meaningless, as it appears to be the Futures Price, times the Advance %, minus the Basis.   We do not know how the Paid Amt is being calculated.   Ticket 111 is 1894.33 bushels. The Futures Price that the ticket is being advanced at is 8.65 with a Basis of -.5, which comes to a Cash Price of 8.15. The Discounts on the ticket equal 37.89, and there is also a Checkoff Tax of 85.17 (not shown on the Check Stub). !pastedImage_d123179_1.png|height=831,width=1100!   If I calculate this out in steps, I get the following (note, all numbers are rounded to 2 decimal places):   Total Bushels times the Cash Price to get my Sub Total:   !pastedImage_d123179_2.png|height=36,width=199!   Sub Total minus Discounts and Checkoff to get my Total:   !pastedImage_d123179_3.png|height=34,width=260!   Total times the Advance percentage to get my Advanced amount:   !pastedImage_d123179_4.png|height=31,width=188!   *ACCEPTANCE* :   Check of Basis Advance should show the information properly.