Hi All,
We are cleaning our inventory on hand. Some records got "Physical Reserved" Qty.
How do we unreserve the "Physical reserved" thru X++?
Your help is greatly appreciated.
Thanks
Andrews
*This post is locked for comments
Hi All,
We are cleaning our inventory on hand. Some records got "Physical Reserved" Qty.
How do we unreserve the "Physical reserved" thru X++?
Your help is greatly appreciated.
Thanks
Andrews
*This post is locked for comments
To remove a reservation (just reverse the sign on the qty):
In the code below, ‘inventTransParent’ is the inventTransId of the record that has the reservation (e.g. salesline.inventTransId)
You probably will want to modify the ‘where’ clause a bit to make sure you get the reservation records only, but this is just an example.
//Remove any existing reservations
InventTrans inventTransReserve ;
InventMovement inventMovement ;
InventUpd_Reservation inventUpd_Reservation ;
;
while select inventTransReserve where inventTransReserve.InventTransId == inventTransParent
{
Inventmovement = inventTransReserve.inventmovement(true);
inventUpd_Reservation = InventUpd_Reservation::newInventDim(inventmovement,inventTransReserve.inventDim(), -1 * inventTransReserve.Qty ,false); inventUpd_Reservation.updatenow();
}
André Arnaud de Cal... 291,391 Super User 2024 Season 2
Martin Dráb 230,445 Most Valuable Professional
nmaenpaa 101,156