M2M Issues - Conversions and Calculations

Issue No: RM-4318
Created 8/6/2021 6:37:11 AM
Type Bug-QC
Priority Critical
Status Closed
Resolution Fixed
Fixed Version 20.1
Description *This issue relates to i21 Help Desk ticket:* [ HDTN-263593 - Contract Balance on MTM incorrect|https://helpdesk.irely.com/iRelyi21live/#/HD/Ticket/?ticket=HDTN-263593]   *This issue relates to i21 Help Desk ticket:* [ HDTN-263375 - M2M Issues - Conversions and Calculations|https://helpdesk.irely.com/iRelyi21live/#/HD/Ticket/?ticket=HDTN-263375]   [~rajendra.channalli] - Please create HD ticket and just assign it to the dev. Thanks!       Issues:   1. Purchase Priced - Issue on calculation on conversions of quantity and Price UOM     !pastedImage_d167180_0.png|height=289,width=849!       2. Purchase Basis/Sales Basis   * Market Futures is not displaying * After partially priced contract - Contract futures is not displaying . This should be display since we already price half of the transaction. Make sure to double check the following impacted calculations. Also try to convert the Quantity UOM and Price UOM to Pound to double check the impact   !pastedImage_d167180_1.png|height=213,width=849!   !pastedImage_d167180_2.png|height=208,width=849!   * Contract Futures and cash price= Incorrect in M2M. looks like rounded off but makes huge difference on calculations of net gain loss, basis gain loss, and futures gain loss     !pastedImage_d167180_3.png|height=402,width=849!   !pastedImage_d167180_4.png|height=195,width=849!     Derivatives - Not sure where does contract details came from . Should not be displayed since the details is for derivatives   !pastedImage_d167180_5.png|height=348,width=849!     !pastedImage_d167180_6.png|height=317,width=849!     3. Also, please use these test cases as your checkpoints especially the calculations for different pricing types. This includes conversion of Quantity and Price. Currency conversion looks like not applicable for them because they only have one currency.     Acceptance:   1. Contract futures is not displaying after partially pricing   2. Calculations on net gain/loss, basis gain loss should be corrected         Thanks,   Mary