details:   https://code.openbravo.com/erp/devel/pi/rev/d2405bbe38be
changeset: 16074:d2405bbe38be
user:      Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
date:      Fri Apr 13 10:44:08 2012 +0200
summary:   Fixed bug 16354: Storage bin selector in Create lines from (Goods 
receipt)

The user can write any value in the Storage bin selector and press ENTER without
getting an error anymore

diffstat:

 src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_ShipmentPO.html |  9 
++++++---
 src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_ShipmentPO.xml  |  3 ++-
 2 files changed, 8 insertions(+), 4 deletions(-)

diffs (53 lines):

diff -r e8c1e6c5054d -r d2405bbe38be 
src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_ShipmentPO.html
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_ShipmentPO.html    
Wed Apr 11 12:29:37 2012 +0200
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_ShipmentPO.html    
Fri Apr 13 10:44:08 2012 +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) 2001-2011 Openbravo SLU 
+ * All portions are Copyright (C) 2001-2012 Openbravo SLU 
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -83,7 +83,10 @@
       keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, 
null, '../info/Locator.html', null, false, 'frmMain', 'inpmLocatorId', 
'inpmLocatorId_DES', document.frmMain.inpmLocatorId_DES.value, 'Command', 
'KEY', 'WindowID', 'CreateFrom_Shipment');", "inpmLocatorId_DES", "null");
 }
 
-
+function enableLocatorShortcut(id) {
+  keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, 
null, '../info/Locator.html', null, false, 'frmMain', 'inpmLocatorId"+id+"', 
'inpmLocatorId_DES"+id+"', document.frmMain.inpmLocatorId_DES"+id+".value, 
'Command', 'KEY', 'WindowID', 'CreateFrom_Shipment');", "inpmLocatorId_DES"+id, 
"null");
+  activeElementFocus();
+}
 
 
 function calloutSL_CreateLines_Conversion_UOM(varId) {
@@ -480,7 +483,7 @@
                                                <td class="DataGrid_Body_Cell"> 
                                                <table>
                                                <td>
-                                               <input type="text" 
class="dojoValidateValid TextBox_btn_TwoCells_width" required="false" 
maxlength="22" name="inpmLocatorId_DESxx" id="fieldM_Locator_ID_DES"></input>
+                                               <input type="text" 
onfocus="enableLocatorShortcut('xx');" class="dojoValidateValid 
TextBox_btn_TwoCells_width" required="false" maxlength="22" 
name="inpmLocatorId_DESxx" id="fieldM_Locator_ID_DES"></input>
                                                </td>
                                                <td>
                                                <a id="fieldLocatorDES" 
class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); 
window.status='Locator'; return true;" onblur=" window.status=''; return true;" 
onkeypress="this.className='FieldButtonLink_active'; return true;" 
onkeyup="this.className='FieldButtonLink_focus'; return true;"  
onclick="openSearch(null, null, '../info/Locator.html', null, false, 'frmMain', 
'inpmLocatorIdyyy', 'inpmLocatorId_DESvvv', 
document.frmMain.inpmLocatorId_DESxxx.value, 'WindowID', 
'CreateFrom_Shipment');return false;" >
diff -r e8c1e6c5054d -r d2405bbe38be 
src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_ShipmentPO.xml
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_ShipmentPO.xml     
Wed Apr 11 12:29:37 2012 +0200
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_ShipmentPO.xml     
Fri Apr 13 10:44:08 2012 +0200
@@ -12,7 +12,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) 2001-2010 Openbravo SLU 
+ * All portions are Copyright (C) 2001-2012 Openbravo SLU 
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -76,6 +76,7 @@
                <FIELD id="fieldSecUom" attribute="onchange" 
replace="ff">id</FIELD>
                <FIELD id="fieldSecUom" attribute="style" 
replace="yyy">havesecuom</FIELD>
                <FIELD id="fieldM_Locator_ID_DES" attribute="name" 
replace="xx">id</FIELD>
+        <FIELD id="fieldM_Locator_ID_DES" attribute="onfocus" 
replace="xx">id</FIELD>
                <FIELD id="fieldM_Locator_ID" attribute="name" 
replace="xx">id</FIELD>
                <FIELD id="fieldLocatorDES" attribute="onclick" 
replace="xxx">id</FIELD>
                <FIELD id="fieldLocatorDES" attribute="onclick" 
replace="yyy">id</FIELD>

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to