Hi everybody,
i recently experienced strange behaviour during work creation for Inventory movement and i believe it's a bug.
Some MS code prevents to move a quantity of one item. Movements past one are working out.
The infolog warning is misleading too (Inventory movement work can’t be created for lines where the Quantity to be moved field or the Movement type code field are not specified. Specify these fields to create inventory movement work.). I'm quite sure it is a bug and the bold part below should be this.QtyToMove == 0 to prevent work creation for zero items. Whats your opinion? By the way...where can i report bugs?
Here is the code (Table WHSMovementCreate, Method: createMovementWork):
// Check the lines that were touched select firstOnly RecId from this where ( this.QtyToMove != 0 || this.MovementTypeCode != '' || this.ToLoc != '') && (this.QtyToMove == 1 || this.MovementTypeCode == ''); if ( this.RecId != 0 ) { allLinesValid = checkFailed("@SYS4010251"); }
Greetings
Nils