details:   https://code.openbravo.com/erp/devel/pi/rev/82b516856fe6
changeset: 20408:82b516856fe6
user:      Pandeeswari Ramakrishnan <pandeeswari.ramakrishnan <at> 
openbravo.com>
date:      Wed May 15 12:26:36 2013 +0530
summary:   Fixes issue 23723: Manage Reservations does not work
Manage Reservations is not working when opening from Reserved Stock Tab in 
Sales Order window

details:   https://code.openbravo.com/erp/devel/pi/rev/4a77521ad655
changeset: 20409:4a77521ad655
user:      Sandra Huguet <sandra.huguet <at> openbravo.com>
date:      Tue May 21 11:01:50 2013 +0200
summary:   Related to 23723 code review

diffstat:

 src/org/openbravo/common/actionhandler/ManageReservationActionHandler.java |  
8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r 31353433f34e -r 4a77521ad655 
src/org/openbravo/common/actionhandler/ManageReservationActionHandler.java
--- 
a/src/org/openbravo/common/actionhandler/ManageReservationActionHandler.java    
    Tue May 21 14:24:39 2013 +0530
+++ 
b/src/org/openbravo/common/actionhandler/ManageReservationActionHandler.java    
    Tue May 21 11:01:50 2013 +0200
@@ -11,7 +11,7 @@
  * under the License. 
  * The Original Code is Openbravo ERP. 
  * The Initial Developer of the Original Code is Openbravo SLU 
- * All portions are Copyright (C) 2012 Openbravo SLU 
+ * All portions are Copyright (C) 2013 Openbravo SLU 
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -53,6 +53,7 @@
   private static final String strOrderLineTableId = "260";
   private static final String strReservationsTableId = 
"77264B07BB0E4FA483A07FB40C2E0FE0";
   private static final String strResStockTableId = 
"D6079A4A6C2542678D9A50114367B967";
+  private static final String strResStockOrderTableId = 
"8A36D18D1D164189B7C3AE892F310E11";
 
   @Override
   protected JSONObject doExecute(Map<String, Object> parameters, String 
content) {
@@ -66,9 +67,10 @@
 
       Reservation reservation = null;
       if (strTableId.equals(strReservationsTableId) || 
strTableId.equals(strResStockTableId)) {
-        final String strReservationId = 
jsonRequest.getString("M_Reservation_ID");
+        final String strReservationId = 
jsonRequest.getString("inpmReservationId");
         reservation = OBDal.getInstance().get(Reservation.class, 
strReservationId);
-      } else if (strTableId.equals(strOrderLineTableId)) {
+      } else if (strTableId.equals(strOrderLineTableId)
+          || strTableId.equals(strResStockOrderTableId)) {
         final String strOrderLineId = jsonRequest.getString("C_OrderLine_ID");
         final OrderLine sol = OBDal.getInstance().get(OrderLine.class, 
strOrderLineId);
         reservation = ReservationUtils.getReservationFromOrder(sol);

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to