Hi All,
I have an SO of two lines of Qty 10, 5 respectively.
Both item have an Over delivery of 0.00% and under delivery of 100.00%
And then I picked a 5 Qty from my first line.
After wards I went for confirmation of the same order once again. This give me a warning message that,
When I done some R&D in code I got to know the qty calculated for the 1st line is 15(10ordered+5picked) instead of 10 which sensed wrong for me.
Trace on code:
1. Table/InventSum/addInventTransQtyOnSum
case StatusIssue::Picked:
this.Picked -= _inventTrans.Qty;(-5)
2. Classes/InventTransIdSum/physicalInventNotFinancial
return inventSum.Registered//(0)
+inventSum.Received//(0)
-inventSum.Picked//(5)
-inventSum.Deducted;//(0)
3. Invent Movement/qtyPost(Line 21)
qtyPost = abs(qtyPost + _physicalNow);( -5 + -10)
4. Invent Movement/checkNotOverDelivery(Line 116)
qtyOverDelivery = qtyPost - qtyPre;(15-10)
Due to this calculation we have an over delivery of 50%
Can anyone help me out, am I getting confused with any functionality or it’s a bug in AX?