In Dynamics AX 2009, noticed that few purchase orders got invoiced fully but one of it's fully invoiced line is having positive quantity against the column 'Ordered' which is a calculated field.
If the purchase order line is having an open quantity, it wouldn't have been invoiced fully. In the same way, if the purchase order got invoiced fully, it is not possible to make any changes on it.
When did some initial analysis, the concerned transaction (in InventTrans) doesn't have any detail other than item id, qty, trans type, trans ref id, date expected, lot id, direction and issue status (as ordered), date status and inventdimid. When checked the inventory transaction log trace, it has shown that it came from production order but not sure how it got updated the invoiced purchase order with the positive ordered quantity. Also we had a planned purchase order for an item with one quantity higher than the invoiced quantity. Is that difference showing as ordered quantity when the concerned production order ended ?
I would appreciate if anybody can explain how this would have happen and how can we remove the ordered quantity from the invoiced line with out hurting the system?