[DPR] - Removed Hedge Still Showing

Issue No: RM-3196
Created 8/14/2019 1:13:18 PM
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-234673 - DPR issue - Hedge from Contract that is removed not updated on DPR|https://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-234673]   Creston 01 Flake DPR. Drill into the Net futures in the nearby. It doesn't show a derivative entry at all. However if you look at the transaction history in derivatives, second screen below, you will see that there was an add and update for DER-755-H. There is no reference to the contract in this screen, but we found out that it was contract 10495-1. If you look at the audit history, the hedge was removed. (Third screen). So I think the issue here is that that doesn't write a record to the history on derivatives so that the DPR knows to calculate it to 0. As a result their position has been off since 7/22 by 500 Tons.   Background - They tried to hedge from the contract, but they wanted to hedge 6 contracts (qty was 551Ton) but we currently only allow it to be less. (There is a ticket in for that to be fixed). So since they couldn't enter 6 contracts, they removed the 5, and went directly to hedge entry and put in 6. So now they have 1100 hedged when they think 600.     Steps to replicate:   1. Create Basis Contract   2. Hedge the transaction - It will create derivative entry   3. Unhedge the contract - It will delete entry on derivative entry   4. Check Transaction History     ISSUE: It doesn't create entry on transaction history if transaction is unhedge.   Acceptance: Should create entry on transaction history tab if transaction is unhedge