前言
一、
_reserveQuantity 负数是预留,正数是取消预留
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();