D365 在 X++ 中预留和取消预留销售行库存
InventUpd_Reservation reservation;
InventMovement movement;
InventDim inventDim;
inventDim= InventDim::find(_salesLine.InventDimId);
movement = InventMovement::construct(_salesLine);
reservation = InventUpd_Reservation::newInventDim(movement, inventDim,_reserveQuantity, false);
reservation.updateNow();