HDTN-267734 - Default contract quantity calculation showing errors

Issue No: CT-6597
Created 12/13/2021 6:51:59 AM
Type Bug-QC
Priority Critical
Status Closed
Resolution Fixed
Fixed Version 21.2
Description *Steps:*   Steps to replicate   1) Create Sales commitment contract with 4 lots of ICE Arabica futures. Qty correctly calculated as 15000 as per " Raw to WIP Conversion"   !pastedImage_d175531_0.jpg!   !pastedImage_d175531_1.jpg!   2) Duplicate the above sales contract and change the market to LDN Robusta and click on Update   a) The quantity incorrectly comes as 37500 ( There is no line in "Raw to WIP Conversion" for this book and market) .However the default quantity is different as per below screenshot   b) Changing the lots doesn't change quantity   !pastedImage_d175531_2.jpg!   !pastedImage_d175531_3.jpg!   *Issue:*   While creating Sales commitment contract , and there is no related entry in "Raw to WIP Conversion" for the Book and Futures market selected, the following errors are identified   1) If the number of lots are changed the corresponding qty remains unchanged   2) The quantity is not equal to default qty of Futures market     *Expectation*   1) If relevant entry is present in " Raw to WIP Conversion" then use the same for quantity calculation   2) If entry not present in "" Raw to WIP Conversion" then the default quantity for Futures market to be used. In the above case the quantity should be 4* 22046 ( No: of lots * Lot quantity) = 88184   3) When no : of lot is changed then the quantity also needs to be correctly changed