Split transaction reducing the lot qty three times

Issue No: IC-5376
Created 5/18/2018 4:20:33 AM
Type Bug-QC
Priority Blocker
Status Closed
Resolution Fixed
Fixed Version 18.1, 18.3
Description *Issue description* : While spliting a lot, application is reducing the lot's qty three times of the split qty. For example, if lot is having 170 KG and user splits 40 KG then application is spliting it by 120 KG.   Steps:   1. Go to Manufacturing --> Inventory View   2. Select a Lot and select Split   3. Enter split Qty   4. Click on Save   Issue: Application is reducing the lot's qty three times then the entered Split qty   Expectation: Application should split it by the entered Qty     begin transaction go Select *from tblICLot Where strLotNumber ='O00000093450' go declare @intInventoryAdjustmentId int EXEC uspICInventoryAdjustment_CreatePostSplitLot @intItemId = 327 ,@dtmDate = '2018-05-18 00:00:00.000' ,@intLocationId = 1 ,@intSubLocationId = 30 ,@intStorageLocationId = 1929 ,@strLotNumber = 'O00000093450' ,@intNewLocationId = 1 ,@intNewSubLocationId = 30 ,@intNewStorageLocationId = 1929 ,@strNewLotNumber = 'P000008066' ,@dblAdjustByQuantity = -40 ,@intItemUOMId = 326 ,@dblNewSplitLotQuantity = NULL ,@dblNewWeight = NULL ,@intNewItemUOMId = NULL ,@intNewWeightUOMId = NULL ,@dblNewUnitCost = NULL ,@intSourceId = 1 ,@intSourceTransactionTypeId = 8 ,@intEntityUserSecurityId = 1 ,@intInventoryAdjustmentId = @intInventoryAdjustmentId OUTPUT ,@strDescription = '' Go Select *from tblICLot Where strLotNumber ='O00000093450' go rollback transaction