HDTN-276262-Invoice display a different Contract Price

Issue No: AR-15142
Created 8/12/2022 12:09:50 PM
Type Bug
Priority Blocker
Status Closed
Resolution Fixed
Fixed Version 20.1
Description *This issue relates to i21 Help Desk ticket:* [ HDTN-276262 - SI-51401|https://helpdesk.irely.com/iRelyi21live/#/HD/Ticket/?ticket=HDTN-276262]   *Steps:*   Follow this test case link for more detailed steps: [http://jira.irelyserver.com/secure/Tests.jspa#/testCase/ZEI-T1210]   or   *Note:* Ticket Pool Load out must be Manual   # Create Sale basis contract = 200 ## Basis = 45 # Create Load from contract ## 40 ton / load = 3 loads ## 30 ton / load = 1 load # Create ticket 1 ## Distribution = Load (select 1st load generated with 40 tons qty) ## Net Units = 50.11 ## Distribute to contract # Partial Price contract = 50.11 ## Futures = 429.7 # Create ticket 2 ## Distribution = Load (select 2nd load generated with 40 tons qty) ## Net Units = 51.77 ## Distribute to contract # Full Price contract = 149.89 ## Futures = 489.20 # Create ticket 3 ## Distribution = Load (select 3rd load generated with 40 tons qty) ## Net Units = 52.2 ## Distribute to contract # Check the Last Invoice.   *Issue*   The second line of SI-51401 is pulling the average price of the contract. The 12.2 tons should also be priced at $534.20   !pastedImage_d192692_0.png|height=178,width=570!   Ticket 86253 with a Load Distribution related to LS-47706. The LS had the first 40 tons at the correct price but the overage should have gone to the second pricing on contract 7675 but instead took the average price on sequence 1.   !pastedImage_d192692_1.png|height=312,width=553!   !pastedImage_d192692_2.png|height=452,width=387!     Will need SI-51401 corrected and why did it use the wrong pricing from the contract.   *Acceptance* : should have the correct pricing ($534.20)