src/org/openbravo/erpCommon/ad_forms/GenerateInvoicesmanual.html
changeset 689 a9f6becc7901
parent 628 492ad1a5c917
child 726 dac2a1486bd3
--- a/src/org/openbravo/erpCommon/ad_forms/GenerateInvoicesmanual.html	Sat Apr 19 15:07:49 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/GenerateInvoicesmanual.html	Sat Apr 19 20:01:22 2008 +0000
@@ -36,6 +36,7 @@
 <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>
+<script language="JavaScript" src="../../../../../web/js/appStatus.js" type="text/javascript"></script>
 <SCRIPT language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></SCRIPT>
 <SCRIPT language="JavaScript" src="../../../../../web/js/jscalendar/calendar.js" type="text/javascript"></SCRIPT>
 <SCRIPT language="JavaScript" src="../../../../../web/js/jscalendar/lang/calendar-es.js" type="text/javascript" id="fieldCalendar"></SCRIPT>
@@ -56,18 +57,19 @@
 
 function depurar(action) {
   var frm=document.frmMain;
-  	if (action=="GENERATE") {
-			if (radioValue(frm.inpOrder)==null) {
-			mensaje(1);
-			return false;
-			} 
-	} else if (action=="FIND") {
-			if (frm.inpadOrgId.value==null || frm.inpadOrgId.value=="") {
-			frm.inpadOrgId.focus();
-			mensaje(7);
-			return false;
-			}
-	}
+  if (action=="GENERATE") {
+    if (radioValue(frm.inpOrder)==null) {
+    mensaje(1);
+    return false;
+    }
+    setProcessingMode('window',true);
+  } else if (action=="FIND") {
+    if (frm.inpadOrgId.value==null || frm.inpadOrgId.value=="") {
+    frm.inpadOrgId.focus();
+    mensaje(7);
+    return false;
+    }
+  }
   return true;
 }
 
@@ -76,8 +78,9 @@
 }
 </SCRIPT>
 	<SCRIPT language="JavaScript" type="text/javascript">
-	function onLoadDo(){
-		this.windowTables = new Array(
+	
+  function onLoadDo(){
+		setProcessingMode('window', false); this.windowTables = new Array(
 		  new windowTableId('client', null, 'buttonSearch'),
 		  new windowTableId('tdbottomButtons', null, 'buttonProcess')
 		);