details:   http://code.openbravo.com/erp/devel/pi/rev/309965dd1e4a
changeset: 3264:309965dd1e4a
user:      Gorka Ion Damián <gorkaion.dam...@openbravo.com>
date:      Fri Feb 27 17:08:27 2009 +0100
description:
Fixed bug 7697. The SL_RequisitionLine_Product callout was always moving the 
focus, modified to set the focus in the quantity field only when the product 
has changed.

diffs (16 lines):

diff -r cd68d3ab1e89 -r 309965dd1e4a 
src/org/openbravo/erpCommon/ad_callouts/SL_RequisitionLine_Product.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_RequisitionLine_Product.java   
Fri Feb 27 17:37:58 2009 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_RequisitionLine_Product.java   
Fri Feb 27 17:08:27 2009 +0100
@@ -168,10 +168,10 @@
       } else
         resultado.append("null");
       resultado.append("),\n");
+      // To set the cursor focus in the amount field
+      resultado.append("new Array(\"CURSOR_FIELD\", \"inpqty\"),\n");
     }
 
-    // To set the cursor focus in the amount field
-    resultado.append("new Array(\"CURSOR_FIELD\", \"inpqty\"),\n");
     if (!strMessage.equals(""))
       resultado.append("new Array('MESSAGE', \""
           + FormatUtilities.replaceJS(Utility.messageBD(this, strMessage, 
vars.getLanguage()))

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to