src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_CRemittance.html
changeset 1605 8a0fe0193bef
parent 1572 e29d45957ddb
child 1709 d1079c01be35
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_CRemittance.html	Wed Sep 03 17:10:52 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_CRemittance.html	Wed Sep 03 17:55:37 2008 +0000
@@ -21,8 +21,8 @@
 <title>Create from Remittance</title>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
   <link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Popup/Popup.css" id="paramCSS"></link>
-  <script language="JavaScript" type="text/javascript" id="paramLanguage">LNG_POR_DEFECTO = "en_US";</script>
-  <script language="JavaScript" type="text/javascript" id="paramDirection">var baseDirection = "../../../../../web/";</script>
+  <script language="JavaScript" type="text/javascript" id="paramLanguage">defaultLang = "en_US";</script>
+  <script language="JavaScript" type="text/javascript" id="paramDirectory">var baseDirectory = "../../../../../web/";</script>
   <script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
   <script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
   <script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
@@ -48,7 +48,7 @@
     }
 
     function submitThisPage(strCommand) {
-      if (depurar(strCommand)) {
+      if (validate(strCommand)) {
         submitCommandForm(strCommand, false, null, null, '_top');
         return true;
       }
@@ -59,60 +59,60 @@
     function enableLocalShortcuts() {
     keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmMain.inpcBpartnerId_DES.value, 'Command', 'KEY');", "inpcBpartnerId_DES", "null");
     }
-    function depurar(action) {
+    function validate(action) {
       var frm=document.frmMain;
       if (action=="FIND_SETTLEMENT") {
         if (frm.inpplanneddateFrom.value!=null && frm.inpplanneddateFrom.value!="" && !isValidDate(frm.inpplanneddateFrom.value, frm.inpplanneddateFrom.displayFormat)) {
           setWindowElementFocus(frm.inpplanneddateFrom);
           frm.inpplanneddateFrom.select();
-          mensaje(5);
+          showJSMessage(5);
           setTimeout('resizeAreaCreateFrom()',100);
           return false;
         } else if (frm.inpplanneddateTo.value!=null && frm.inpplanneddateTo.value!="" && !isValidDate(frm.inpplanneddateTo.value, frm.inpplanneddateTo.displayFormat)) {
           setWindowElementFocus(frm.inpplanneddateTo);
           frm.inpplanneddateTo.select();
-          mensaje(5);
+          showJSMessage(5);
           setTimeout('resizeAreaCreateFrom()',100);
           return false;
-        } else if (frm.inpamountFrom.value!=null && frm.inpamountFrom.value!="" && !campoNumerico(frm.inpamountFrom, true, true)) {
+        } else if (frm.inpamountFrom.value!=null && frm.inpamountFrom.value!="" && !validateNumberField(frm.inpamountFrom, true, true)) {
           setWindowElementFocus(frm.inpamountFrom);
           return false;
-        } else if (frm.inpamountTo.value!=null && frm.inpamountTo.value!="" && !campoNumerico(frm.inpamountTo, true, true)) {
+        } else if (frm.inpamountTo.value!=null && frm.inpamountTo.value!="" && !validateNumberField(frm.inpamountTo, true, true)) {
           setWindowElementFocus(frm.inpamountTo);
           return false;
-        } else if (frm.inpamount.value!=null && frm.inpamount.value!="" && !campoNumerico(frm.inpamount, true, true)) {
+        } else if (frm.inpamount.value!=null && frm.inpamount.value!="" && !validateNumberField(frm.inpamount, true, true)) {
           setWindowElementFocus(frm.inpamount);
           return false;
         }
       } else if (radioValue(frm.inpcDebtPaymentId)==null) {
-        mensaje(1);
+        showJSMessage(1);
         setTimeout('resizeAreaCreateFrom()',100);
         return false;
       }
         return true;
     }
 
-    function actualizarDatos(clave, marcar) {
-      if (marcar==null) marcar=false;
+    function updateData(key, mark) {
+      if (mark==null) mark=false;
       var frm = document.frmMain;
-      //frm.elements["inpwriteoff" + clave].disabled=!marcar;
-      //frm.elements["inpispaid" + clave].disabled=!marcar;
+      //frm.elements["inpwriteoff" + key].disabled=!mark;
+      //frm.elements["inpispaid" + key].disabled=!mark;
       return true;
     }
 
-    function cargarDatos(marcar) {
+    function loadData(mark) {
       var radio=document.frmMain.inpcDebtPaymentId;
-      if (marcar==null) marcar=false;
+      if (mark==null) mark=false;
         var frm = document.frmMain;
       if (!radio) return false;
       else if (!radio.length) {
-          radio.checked = marcar;
+          radio.checked = mark;
       } else if (radio.length > 20) {
         return submitCommandForm('FIND_SETTLEMENT', true);
       } else {
           var total = radio.length;
         for (var i=0;i<total;i++) {
-              radio[i].checked=marcar;
+              radio[i].checked=mark;
         }
       }
       return true;
@@ -169,7 +169,7 @@
           <tr class="Popup_NavBar_bg"><td></td>
             <td class="Popup_NavBar_separator_cell"></td>
             <td class="Popup_NavBar_bg_logo_left"></td>
-            <td class="Popup_NavBar_bg_logo" width="1" onclick="abrirNuevoBrowser('http://www.openbravo.com', 'Openbravo');return false;"><img src="../../../../../web/images/blank.gif" alt="Openbravo" title="Openbravo" border="0" id="openbravoLogo" class="Popup_NavBar_logo" /></td>
+            <td class="Popup_NavBar_bg_logo" width="1" onclick="openNewBrowser('http://www.openbravo.com', 'Openbravo');return false;"><img src="../../../../../web/images/blank.gif" alt="Openbravo" title="Openbravo" border="0" id="openbravoLogo" class="Popup_NavBar_logo" /></td>
             <td class="Popup_NavBar_bg_logo_right"></td>
             <td class="Popup_NavBar_Popup_title_cell"><span>Create from Remittance</span></td>
             <td class="Popup_NavBar_separator_cell"></td>
@@ -512,7 +512,7 @@
           <table cellspacing="0" cellpadding="0" width="100%" class="DataGrid_Header_Table DataGrid_Body_Table" style="table-layout: auto;">
 
             <tr class="Popup_Client_Selector_DataGrid_HeaderRow">
-              <td class="DataGrid_Body_LineNoCell" width="25"><span class="Checkbox_container_NOT_Focused"><input type="checkbox" name="inpTodos" onclick="cargarDatos(this);return true;" value="Y" id="fieldMarcarTodos"></input></span></td>
+              <td class="DataGrid_Body_LineNoCell" width="25"><span class="Checkbox_container_NOT_Focused"><input type="checkbox" name="inpTodos" onclick="loadData(this);return true;" value="Y" id="fieldMarcarTodos"></input></span></td>
               <th class="DataGrid_Header_Cell">Business Partner</th>
               <th class="DataGrid_Header_Cell">Organization</th>
               <th class="DataGrid_Header_Cell">Invoice</th>
@@ -526,7 +526,7 @@
             <div id="sectionDetail">
               <tr class="DataGrid_Body_Row DataGrid_Body_Row_yy" id="inpRecord10000003">
                 <td class="DataGrid_Body_LineNoCell">
-                <span class="Checkbox_container_NOT_Focused"><input type="checkbox" name="inpcDebtPaymentId" value="" id="fieldCDebtPaymentId" onclick="actualizarDatos(this.value, this.checked);return true;"></input></span></td>
+                <span class="Checkbox_container_NOT_Focused"><input type="checkbox" name="inpcDebtPaymentId" value="" id="fieldCDebtPaymentId" onclick="updateData(this.value, this.checked);return true;"></input></span></td>
                 <td class="DataGrid_Body_Cell" id="fieldBpartner">xxQuantity</td>
                 <td class="DataGrid_Body_Cell" id="fieldOrg">xx</td>
                 <td class="DataGrid_Body_Cell" id="fieldInvoice">xxUOM</td>