Mark to Market - Basis Gain/Loss incorrect when there is additional cost

Issue No: RM-3184
Created 8/7/2019 5:08:52 AM
Type Feature
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-234319 - Basis Gain/Loss incorrect|https://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-234319]     Contract 10394-1 has the basis gain loss calculated incorrectly. It should be -26,362.50. It was working before. It seems that before it was putting the contract basis to be equal to the market basis.Now it is 0 and it is including the futures market price is the calc     For basis it should look at the contract basis, including costs, and compare to market basis   basis is 0. Costs are .0395. So adj basis is -.0395 and market is .03. Right now it is comparing the market of .03 to the 0 basis to calculate a .03 gain. However once you take 0 basis and subtract the .0395 cost, you actually have a .0095 loss.   Note - Whether the costs are subtracted or added to the basis is driven my the MTM configuration screen.   This was working prior to the upgrade.   !https://helpdesk.irely.com/iRelyi21live/Export/CRM/c9dfc199-7bcd-4e85-85d0-e4e28c8e7d5d.png!     ACCEPTED   Contract Basis + Cost should be the amount that will be used to get the Basis Gain/Loss and Net Gain/Loss should impact accordingly.