I was able to successfully register and receive items in AX 2012 with code. I was wondering how to unregister inventory if receiving the registered qty fails?
For instance, I register 1200 of something to be received. Done. Now I try and receive it in, but the order was only for 1000 with no over/under delivery %. The receipt fails, but the registered qty remains.
In this instance, I want to unregister the item(s) as to avoid accidental receipt of the item later. Or, in the above case, an error in my service saying there is no qty on order (it has Registered status now, not Ordered).
Thanks!