When a bond trade is saved then has its bond modified, there are two issues:
The canceled transfers are linked to the new product id instead of the old one
the position on the new bond is not modified as expected and in the same time the position on the old bond is incorrectly impacted
To reproduce the issue:
Save a Bond trade (direction "Buy") with a Bond A (quantity: 100)
Change the bond A to Bond B and save again the trade
Transfers and positions are now incorrect
Expected behavior:
The canceled transfers should be linked to the old product id and not the new one
The position on the old product should be impacted by the change : there should be a a decrease of 100 Bond A
The position on the new product should be impacted by the change : there should be an increase of 100 Bond B
When a bond trade is saved then has its bond modified, there are two issues:
To reproduce the issue:
Expected behavior: The canceled transfers should be linked to the old product id and not the new one The position on the old product should be impacted by the change : there should be a a decrease of 100 Bond A The position on the new product should be impacted by the change : there should be an increase of 100 Bond B
Environment: Version 2.0.0