[Reservations]Implement ReservationUtils class.
authorGorka Ion Damián <gorkaion.damian@openbravo.com>
Thu, 18 Oct 2012 10:43:36 +0200
changeset 18646 641c69a0a45c
parent 18645 33469aeb6413
child 18647 a9b7f10f443a
[Reservations]Implement ReservationUtils class.
src/org/openbravo/materialmgmt/ReservationUtils.java
--- a/src/org/openbravo/materialmgmt/ReservationUtils.java	Wed Oct 17 12:04:46 2012 +0200
+++ b/src/org/openbravo/materialmgmt/ReservationUtils.java	Thu Oct 18 10:43:36 2012 +0200
@@ -25,6 +25,7 @@
 import java.util.Map;
 
 import org.openbravo.base.exception.OBException;
+import org.openbravo.dal.core.DalUtil;
 import org.openbravo.dal.core.OBContext;
 import org.openbravo.dal.service.OBDal;
 import org.openbravo.erpCommon.utility.OBError;
@@ -52,7 +53,7 @@
     final List<Object> parameters = new ArrayList<Object>();
     parameters.add(soLine.getId());
     parameters.add(doProcess ? "Y" : "N");
-    // parameters.add(null);
+    parameters.add(DalUtil.getId(OBContext.getOBContext().getUser()));
     Reservation reservation = (Reservation) CallStoredProcedure.getInstance().call(
         "M_CREATE_RESERVE_FROM_SOL", parameters, null);