details:   /erp/stable/2.50/rev/010e13f4ff11
changeset: 9249:010e13f4ff11
user:      Adrián Romero <adrianromero <at> openbravo.com>
date:      Tue Mar 01 15:54:12 2011 +0100
summary:   Fixes issue 0015484: Multiple business partner selector. Strange 
error message
It has been added a verification in the Business Partner selector and a message 
is shown if there are no records selected
It as been modified too in the Products selector and Projects selector the kind 
of message displayed to make all messages consistent

details:   /erp/stable/2.50/rev/39c1bc9d96c0
changeset: 9250:39c1bc9d96c0
user:      Adrián Romero <adrianromero <at> openbravo.com>
date:      Wed Mar 02 11:36:31 2011 +0100
summary:   Fixes issue 0015787: It is not possible to void an invoice with 
conversion rate
It has been applied the function TRUNC to remove the hours and minutes to the 
conversion date and also it has been removed the raise exception instruction 
that hid the error conversion message

details:   /erp/stable/2.50/rev/af2c6cb2d148
changeset: 9251:af2c6cb2d148
user:      Adrián Romero <adrianromero <at> openbravo.com>
date:      Wed Mar 02 15:42:35 2011 +0100
summary:   Fixes issue 0015493: Page number is lost once you click the Search 
button
It has been added the capability of storing in the session the initial page 
number value in the reports: Balance sheet, Trial balance, General ledger and 
General ledger journal

diffstat:

 src-db/database/model/functions/C_CURRENCY_RATE.xml                  |   2 +-
 src-db/database/model/functions/C_INVOICE_POST.xml                   |   1 -
 src-db/database/sourcedata/AD_MESSAGE.xml                            |  11 
++++++++++
 src/org/openbravo/erpCommon/ad_reports/GeneralAccountingReports.java |  10 
++++++--
 src/org/openbravo/erpCommon/ad_reports/GeneralAccountingReports.xml  |   2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedger.java      |   9 
+++++--
 src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedger.xml       |   2 +-
 src/org/openbravo/erpCommon/ad_reports/ReportTrialBalance.java       |  11 
++++++---
 src/org/openbravo/erpCommon/ad_reports/ReportTrialBalance.xml        |   2 +-
 src/org/openbravo/erpCommon/info/BusinessPartnerMultiple.html        |   5 ++++
 src/org/openbravo/erpCommon/info/BusinessPartnerMultiple.java        |   2 +
 src/org/openbravo/erpCommon/info/BusinessPartnerMultiple.xml         |   1 +
 src/org/openbravo/erpCommon/info/ProductMultiple.html                |   2 +-
 src/org/openbravo/erpCommon/info/ProjectMultiple.html                |   2 +-
 14 files changed, 45 insertions(+), 17 deletions(-)

diffs (truncated from 321 to 300 lines):

diff -r 5317f0d60a39 -r af2c6cb2d148 
src-db/database/model/functions/C_CURRENCY_RATE.xml
--- a/src-db/database/model/functions/C_CURRENCY_RATE.xml       Fri Mar 04 
09:23:21 2011 +0100
+++ b/src-db/database/model/functions/C_CURRENCY_RATE.xml       Wed Mar 02 
15:42:35 2011 +0100
@@ -88,7 +88,7 @@
       WHERE C_Currency_ID = v_CurrencyFrom
         AND C_Currency_ID_To = v_CurrencyTo
         AND ConversionRateType = v_RateType
-        AND v_ConvDate BETWEEN ValidFrom AND ValidTo
+        AND TRUNC(v_ConvDate) BETWEEN ValidFrom AND ValidTo
         AND AD_Client_ID IN ('0', p_Client_ID)
         AND AD_Org_ID IN ('0', p_Org_ID)
         AND IsActive = 'Y'
diff -r 5317f0d60a39 -r af2c6cb2d148 
src-db/database/model/functions/C_INVOICE_POST.xml
--- a/src-db/database/model/functions/C_INVOICE_POST.xml        Fri Mar 04 
09:23:21 2011 +0100
+++ b/src-db/database/model/functions/C_INVOICE_POST.xml        Wed Mar 02 
15:42:35 2011 +0100
@@ -626,7 +626,6 @@
         END IF;
         END_PROCESSING:=TRUE;
       END IF;
-      EXCEPTION WHEN OTHERS THEN RAISE NO_DATA_FOUND;
     END; -- FOR COMMIT
   END IF;--FINISH_PROCESS
   IF (NOT FINISH_PROCESS AND NOT END_PROCESSING) THEN
diff -r 5317f0d60a39 -r af2c6cb2d148 src-db/database/sourcedata/AD_MESSAGE.xml
--- a/src-db/database/sourcedata/AD_MESSAGE.xml Fri Mar 04 09:23:21 2011 +0100
+++ b/src-db/database/sourcedata/AD_MESSAGE.xml Wed Mar 02 15:42:35 2011 +0100
@@ -30873,6 +30873,17 @@
 <!--3E6367A072B843E2BB2409FE6382E8C1-->  
<AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--3E6367A072B843E2BB2409FE6382E8C1--></AD_MESSAGE>
 
+<!--3EF66D0D2B204092849BE063958FC54D--><AD_MESSAGE>
+<!--3EF66D0D2B204092849BE063958FC54D-->  
<AD_MESSAGE_ID><![CDATA[3EF66D0D2B204092849BE063958FC54D]]></AD_MESSAGE_ID>
+<!--3EF66D0D2B204092849BE063958FC54D-->  
<AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--3EF66D0D2B204092849BE063958FC54D-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--3EF66D0D2B204092849BE063958FC54D-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--3EF66D0D2B204092849BE063958FC54D-->  
<VALUE><![CDATA[NoBusinessPartnerSelected]]></VALUE>
+<!--3EF66D0D2B204092849BE063958FC54D-->  <MSGTEXT><![CDATA[No business partner 
is selected]]></MSGTEXT>
+<!--3EF66D0D2B204092849BE063958FC54D-->  <MSGTYPE><![CDATA[I]]></MSGTYPE>
+<!--3EF66D0D2B204092849BE063958FC54D-->  
<AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--3EF66D0D2B204092849BE063958FC54D--></AD_MESSAGE>
+
 <!--3F6B20FBC89E4B758183842119CC290A--><AD_MESSAGE>
 <!--3F6B20FBC89E4B758183842119CC290A-->  
<AD_MESSAGE_ID><![CDATA[3F6B20FBC89E4B758183842119CC290A]]></AD_MESSAGE_ID>
 <!--3F6B20FBC89E4B758183842119CC290A-->  
<AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
diff -r 5317f0d60a39 -r af2c6cb2d148 
src/org/openbravo/erpCommon/ad_reports/GeneralAccountingReports.java
--- a/src/org/openbravo/erpCommon/ad_reports/GeneralAccountingReports.java      
Fri Mar 04 09:23:21 2011 +0100
+++ b/src/org/openbravo/erpCommon/ad_reports/GeneralAccountingReports.java      
Wed Mar 02 15:42:35 2011 +0100
@@ -63,6 +63,8 @@
           "GeneralAccountingReports|asDateTo", "");
       String strAsDateToRef = vars.getGlobalVariable("inpAsDateToRef",
           "GeneralAccountingReports|asDateToRef", "");
+      String strPageNo = vars.getGlobalVariable("inpPageNo",
+          "GeneralAccountingReports|PageNo", "1");
       String strElementValue = vars.getGlobalVariable("inpcElementvalueId",
           "GeneralAccountingReports|C_ElementValue_ID", "");
       String strConImporte = vars.getGlobalVariable("inpConImporte",
@@ -70,7 +72,7 @@
       String strConCodigo = vars.getGlobalVariable("inpConCodigo",
           "GeneralAccountingReports|conCodigo", "N");
       String strLevel = vars.getGlobalVariable("inpLevel", 
"GeneralAccountingReports|level", "");
-      printPageDataSheet(response, vars, "", "", strDateFrom, strDateTo, 
strDateFromRef,
+      printPageDataSheet(response, vars, "", "", strDateFrom, strDateTo, 
strPageNo, strDateFromRef,
           strDateToRef, strAsDateTo, strAsDateToRef, strElementValue, 
strConImporte, "", strLevel,
           strConCodigo, "");
     } else if (vars.commandIn("FIND")) {
@@ -86,6 +88,8 @@
           "GeneralAccountingReports|dateFromRef");
       String strDateToRef = vars.getRequestGlobalVariable("inpDateToRef",
           "GeneralAccountingReports|dateToRef");
+      String strPageNo = vars.getRequestGlobalVariable("inpPageNo",
+          "GeneralAccountingReports|PageNo");
       String strAsDateTo = vars.getRequestGlobalVariable("inpAsDateTo",
           "GeneralAccountingReports|asDateTo");
       String strAsDateToRef = vars.getRequestGlobalVariable("inpAsDateToRef",
@@ -99,7 +103,6 @@
       String strOrg = vars.getRequestGlobalVariable("inpOrganizacion",
           "GeneralAccountingReports|organizacion");
       String strLevel = vars.getRequestGlobalVariable("inpLevel", 
"GeneralAccountingReports|level");
-      String strPageNo = vars.getStringParameter("inpPageNo", "1");
       printPagePDF(request, response, vars, strAgno, strAgnoRef, strDateFrom, 
strDateTo,
           strDateFromRef, strDateToRef, strAsDateTo, strAsDateToRef, 
strElementValue,
           strConImporte, strOrg, strLevel, strConCodigo, strcAcctSchemaId, 
strPageNo);
@@ -360,7 +363,7 @@
   }
 
   private void printPageDataSheet(HttpServletResponse response, 
VariablesSecureApp vars,
-      String strAgno, String strAgnoRef, String strDateFrom, String strDateTo,
+      String strAgno, String strAgnoRef, String strDateFrom, String strDateTo, 
String strPageNo,
       String strDateFromRef, String strDateToRef, String strAsDateTo, String 
strAsDateToRef,
       String strElementValue, String strConImporte, String strOrg, String 
strLevel,
       String strConCodigo, String strcAcctSchemaId) throws IOException, 
ServletException {
@@ -415,6 +418,7 @@
     xmlDocument.setParameter("dateFromRefdisplayFormat", 
vars.getSessionValue("#AD_SqlDateFormat"));
     xmlDocument.setParameter("dateFromRefsaveFormat", 
vars.getSessionValue("#AD_SqlDateFormat"));
     xmlDocument.setParameter("dateToRef", strDateToRef);
+    xmlDocument.setParameter("PageNo", strPageNo);
     xmlDocument.setParameter("dateToRefdisplayFormat", 
vars.getSessionValue("#AD_SqlDateFormat"));
     xmlDocument.setParameter("dateToRefsaveFormat", 
vars.getSessionValue("#AD_SqlDateFormat"));
     xmlDocument.setParameter("asDateTo", strAsDateTo);
diff -r 5317f0d60a39 -r af2c6cb2d148 
src/org/openbravo/erpCommon/ad_reports/GeneralAccountingReports.xml
--- a/src/org/openbravo/erpCommon/ad_reports/GeneralAccountingReports.xml       
Fri Mar 04 09:23:21 2011 +0100
+++ b/src/org/openbravo/erpCommon/ad_reports/GeneralAccountingReports.xml       
Wed Mar 02 15:42:35 2011 +0100
@@ -62,7 +62,7 @@
   <PARAMETER id="paramArrayAccountingReports" name="accountingReports"/>
   <PARAMETER id="paramArrayOrg" name="orgs"/>
   <PARAMETER id="paramArrayYears" name="years"/>
-  <PARAMETER id="paramPageNo" name="inpPageNo" attribute="value" default="1"/>
+  <PARAMETER id="paramPageNo" name="PageNo" attribute="value"/>
 
   <SUBREPORT id="reportLevel" name="reportLevel" 
report="org/openbravo/erpCommon/reference/List">
     <ARGUMENT name="parameterListSelected" withId="paramLevel"/>
diff -r 5317f0d60a39 -r af2c6cb2d148 
src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedger.java
--- a/src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedger.java   Fri Mar 
04 09:23:21 2011 +0100
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedger.java   Wed Mar 
02 15:42:35 2011 +0100
@@ -58,6 +58,7 @@
       String strDateFrom = vars
           .getGlobalVariable("inpDateFrom", "ReportGeneralLedger|DateFrom", 
"");
       String strDateTo = vars.getGlobalVariable("inpDateTo", 
"ReportGeneralLedger|DateTo", "");
+      String strPageNo = vars.getGlobalVariable("inpPageNo", 
"ReportGeneralLedger|PageNo", "1");
       String strAmtFrom = vars.getNumericGlobalVariable("inpAmtFrom",
           "ReportGeneralLedger|AmtFrom", "");
       String strAmtTo = vars.getNumericGlobalVariable("inpAmtTo", 
"ReportGeneralLedger|AmtTo", "");
@@ -88,7 +89,7 @@
       String strHide = vars.getGlobalVariable("inpHideMatched", 
"ReportGeneralLedger|HideMatched",
           "");
 
-      printPageDataSheet(response, vars, strDateFrom, strDateTo, strAmtFrom, 
strAmtTo,
+      printPageDataSheet(response, vars, strDateFrom, strDateTo, strPageNo, 
strAmtFrom, strAmtTo,
           strcelementvaluefrom, strcelementvalueto, strOrg, strcBpartnerId, 
strmProductId,
           strcProjectId, strGroupBy, strHide, strcAcctSchemaId, 
strcelementvaluefromdes,
           strcelementvaluetodes);
@@ -98,6 +99,7 @@
       String strDateFrom = vars.getRequestGlobalVariable("inpDateFrom",
           "ReportGeneralLedger|DateFrom");
       String strDateTo = vars.getRequestGlobalVariable("inpDateTo", 
"ReportGeneralLedger|DateTo");
+      String strPageNo = vars.getRequestGlobalVariable("inpPageNo", 
"ReportGeneralLedger|PageNo");
       String strAmtFrom = vars.getNumericParameter("inpAmtFrom");
       vars.setSessionValue("ReportGeneralLedger|AmtFrom", strAmtFrom);
       String strAmtTo = vars.getNumericParameter("inpAmtTo");
@@ -138,7 +140,7 @@
         log4j.debug("##################### DoPost - XLS - strcelementvalueto= "
             + strcelementvalueto);
       vars.setSessionValue("ReportGeneralLedger.initRecordNumber", "0");
-      printPageDataSheet(response, vars, strDateFrom, strDateTo, strAmtFrom, 
strAmtTo,
+      printPageDataSheet(response, vars, strDateFrom, strDateTo, strPageNo, 
strAmtFrom, strAmtTo,
           strcelementvaluefrom, strcelementvalueto, strOrg, strcBpartnerId, 
strmProductId,
           strcProjectId, strGroupBy, strHide, strcAcctSchemaId, 
strcelementvaluefromdes,
           strcelementvaluetodes);
@@ -204,7 +206,7 @@
   }
 
   private void printPageDataSheet(HttpServletResponse response, 
VariablesSecureApp vars,
-      String strDateFrom, String strDateTo, String strAmtFrom, String strAmtTo,
+      String strDateFrom, String strDateTo, String strPageNo, String 
strAmtFrom, String strAmtTo,
       String strcelementvaluefrom, String strcelementvalueto, String strOrg, 
String strcBpartnerId,
       String strmProductId, String strcProjectId, String strGroupBy, String 
strHide,
       String strcAcctSchemaId, String strcelementvaluefromdes, String 
strcelementvaluetodes)
@@ -427,6 +429,7 @@
     xmlDocument.setParameter("dateFromdisplayFormat", 
vars.getSessionValue("#AD_SqlDateFormat"));
     xmlDocument.setParameter("dateFromsaveFormat", 
vars.getSessionValue("#AD_SqlDateFormat"));
     xmlDocument.setParameter("dateTo", strDateTo);
+    xmlDocument.setParameter("PageNo", strPageNo);
     xmlDocument.setParameter("dateTodisplayFormat", 
vars.getSessionValue("#AD_SqlDateFormat"));
     xmlDocument.setParameter("dateTosaveFormat", 
vars.getSessionValue("#AD_SqlDateFormat"));
     xmlDocument.setParameter("amtFrom", strAmtFrom);
diff -r 5317f0d60a39 -r af2c6cb2d148 
src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedger.xml
--- a/src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedger.xml    Fri Mar 
04 09:23:21 2011 +0100
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedger.xml    Wed Mar 
02 15:42:35 2011 +0100
@@ -37,7 +37,7 @@
   <PARAMETER id="paramElementvalueIdFrom" name="paramElementvalueIdFrom" 
attribute="value"/>
   <PARAMETER id="inpElementValueIdTo_DES" name="inpElementValueIdTo_DES" 
attribute="value"/>
   <PARAMETER id="inpElementValueIdFrom_DES" name="inpElementValueIdFrom_DES" 
attribute="value"/>
-  <PARAMETER id="paramPageNo" name="inpPageNo" attribute="value" default="1"/>
+  <PARAMETER id="paramPageNo" name="PageNo" attribute="value"/>
 
   <PARAMETER id="parameterHide" name="all" default="1"/>
   <PARAMETER id="paramHideMatched" name="paramHide0" boolean="checked" 
withId="parameterHide" default="0"/>
diff -r 5317f0d60a39 -r af2c6cb2d148 
src/org/openbravo/erpCommon/ad_reports/ReportTrialBalance.java
--- a/src/org/openbravo/erpCommon/ad_reports/ReportTrialBalance.java    Fri Mar 
04 09:23:21 2011 +0100
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportTrialBalance.java    Wed Mar 
02 15:42:35 2011 +0100
@@ -64,6 +64,7 @@
           "ReportTrialBalance|cAcctSchemaId", "");
       String strDateFrom = vars.getGlobalVariable("inpDateFrom", 
"ReportTrialBalance|DateFrom", "");
       String strDateTo = vars.getGlobalVariable("inpDateTo", 
"ReportTrialBalance|DateTo", "");
+      String strPageNo = vars.getGlobalVariable("inpPageNo", 
"ReportTrialBalance|PageNo", "1");
       String strOrg = vars.getGlobalVariable("inpOrg", 
"ReportTrialBalance|Org", "");
       String strLevel = vars.getGlobalVariable("inpLevel", 
"ReportTrialBalance|Level", "");
       String strcBpartnerId = vars.getInGlobalVariable("inpcBPartnerId_IN",
@@ -91,7 +92,7 @@
       vars.setSessionValue("inpElementValueIdFrom_DES", 
strcElementValueFromDes);
       vars.setSessionValue("inpElementValueIdTo_DES", strcElementValueToDes);
 
-      printPageDataSheet(response, vars, strDateFrom, strDateTo, strOrg, 
strLevel,
+      printPageDataSheet(response, vars, strDateFrom, strDateTo, strPageNo, 
strOrg, strLevel,
           strcElementValueFrom, strcElementValueTo, strcElementValueFromDes, 
strcElementValueToDes,
           strcBpartnerId, strmProductId, strcProjectId, strcAcctSchemaId, 
strGroupBy);
 
@@ -101,6 +102,7 @@
       String strDateFrom = vars.getRequestGlobalVariable("inpDateFrom",
           "ReportTrialBalance|DateFrom");
       String strDateTo = vars.getRequestGlobalVariable("inpDateTo", 
"ReportTrialBalance|DateTo");
+      String strPageNo = vars.getRequestGlobalVariable("inpPageNo", 
"ReportTrialBalance|PageNo");
       String strOrg = vars.getRequestGlobalVariable("inpOrg", 
"ReportTrialBalance|Org");
       String strLevel = vars.getRequestGlobalVariable("inpLevel", 
"ReportTrialBalance|Level");
       String strcBpartnerId = 
vars.getRequestInGlobalVariable("inpcBPartnerId_IN",
@@ -124,7 +126,7 @@
       vars.setSessionValue("inpElementValueIdFrom_DES", 
strcElementValueFromDes);
       vars.setSessionValue("inpElementValueIdTo_DES", strcElementValueToDes);
 
-      printPageDataSheet(response, vars, strDateFrom, strDateTo, strOrg, 
strLevel,
+      printPageDataSheet(response, vars, strDateFrom, strDateTo, strPageNo, 
strOrg, strLevel,
           strcElementValueFrom, strcElementValueTo, strcElementValueFromDes, 
strcElementValueToDes,
           strcBpartnerId, strmProductId, strcProjectId, strcAcctSchemaId, 
strGroupBy);
 
@@ -156,7 +158,7 @@
       String strcProjectId = vars.getInGlobalVariable("inpcProjectId_IN",
           "ReportTrialBalance|cProjectId", "", IsIDFilter.instance);
       String strGroupBy = vars.getRequestGlobalVariable("inpGroupBy", 
"ReportTrialBalance|GroupBy");
-      String strPageNo = vars.getGlobalVariable("inpPageNo", 
"ReportTrialBalance|PageNo", "1");
+      String strPageNo = vars.getRequestGlobalVariable("inpPageNo", 
"ReportTrialBalance|PageNo");
       if (vars.commandIn("PDF"))
         printPageDataPDF(request, response, vars, strDateFrom, strDateTo, 
strOrg, strLevel,
             strcElementValueFrom, strcElementValueFromDes, strcElementValueTo,
@@ -257,7 +259,7 @@
   }
 
   private void printPageDataSheet(HttpServletResponse response, 
VariablesSecureApp vars,
-      String strDateFrom, String strDateTo, String strOrg, String strLevel,
+      String strDateFrom, String strDateTo, String strPageNo, String strOrg, 
String strLevel,
       String strcElementValueFrom, String strcElementValueTo, String 
strcElementValueFromDes,
       String strcElementValueToDes, String strcBpartnerId, String 
strmProductId,
       String strcProjectId, String strcAcctSchemaId, String strGroupBy) throws 
IOException,
@@ -395,6 +397,7 @@
     xmlDocument.setParameter("dateFromdisplayFormat", 
vars.getSessionValue("#AD_SqlDateFormat"));
     xmlDocument.setParameter("dateFromsaveFormat", 
vars.getSessionValue("#AD_SqlDateFormat"));
     xmlDocument.setParameter("dateTo", strDateTo);
+    xmlDocument.setParameter("PageNo", strPageNo);
     xmlDocument.setParameter("dateTodisplayFormat", 
vars.getSessionValue("#AD_SqlDateFormat"));
     xmlDocument.setParameter("dateTosaveFormat", 
vars.getSessionValue("#AD_SqlDateFormat"));
     xmlDocument.setParameter("adOrgId", strOrg);
diff -r 5317f0d60a39 -r af2c6cb2d148 
src/org/openbravo/erpCommon/ad_reports/ReportTrialBalance.xml
--- a/src/org/openbravo/erpCommon/ad_reports/ReportTrialBalance.xml     Fri Mar 
04 09:23:21 2011 +0100
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportTrialBalance.xml     Wed Mar 
02 15:42:35 2011 +0100
@@ -47,7 +47,7 @@
   <PARAMETER id="messageBoxIDTitle" name="messageTitle" default=""/>
   <PARAMETER id="messageBoxIDMessage" name="messageMessage" default=""/>
   <PARAMETER id="paramSelectedGroupBy" name="groupbyselected" 
attribute="value" default=""/>
-  <PARAMETER id="paramPageNo" name="inpPageNo" attribute="value" default="1"/>
+  <PARAMETER id="paramPageNo" name="PageNo" attribute="value"/>
 
   <SUBREPORT id="reportCBPartnerId_IN" name="reportCBPartnerId_IN" 
report="org/openbravo/erpCommon/reference/List">
     <ARGUMENT name="parameterListSelected" withId="paramVacio"/>
diff -r 5317f0d60a39 -r af2c6cb2d148 
src/org/openbravo/erpCommon/info/BusinessPartnerMultiple.html
--- a/src/org/openbravo/erpCommon/info/BusinessPartnerMultiple.html     Fri Mar 
04 09:23:21 2011 +0100
+++ b/src/org/openbravo/erpCommon/info/BusinessPartnerMultiple.html     Wed Mar 
02 15:42:35 2011 +0100
@@ -34,6 +34,7 @@
 <script language="JavaScript" src="../../../../../web/js/searchs.js" 
type="text/javascript"></script>
 <script language="JavaScript" type="text/javascript" id="paramDirectory">var 
baseDirectory = "http://yourSite/web/";;</script>
 <script language="JavaScript" type="text/javascript" 
id="paramLanguage">defaultLang = "en_US";</script>
+<script language="JavaScript" type="text/javascript" 
id="paramAlertMsg">ALERT_MSG = "No business partner is selected";</script>
 <script language="JavaScript" type="text/javascript">
 function validate() {  
        var frm = document.forms[0];
@@ -73,6 +74,10 @@
        if(action == "SAVE") {
                data = new Array();
                rows = dijit.byId('grid').getSelectedRows();
+                if(rows.length == 0){
+                    alert(ALERT_MSG);
+                    return false;
+                }
                for(var i=0; i < rows.length; i++) {
                        var rowkey = rows[i].split("@_##_@");
                        var rval = new Array(rowkey[0], rowkey[1]);
diff -r 5317f0d60a39 -r af2c6cb2d148 
src/org/openbravo/erpCommon/info/BusinessPartnerMultiple.java
--- a/src/org/openbravo/erpCommon/info/BusinessPartnerMultiple.java     Fri Mar 
04 09:23:21 2011 +0100
+++ b/src/org/openbravo/erpCommon/info/BusinessPartnerMultiple.java     Wed Mar 
02 15:42:35 2011 +0100
@@ -130,6 +130,8 @@
     }
     xmlDocument.setParameter("directory", "var baseDirectory = \"" + 
strReplaceWith + "/\";\n");
     xmlDocument.setParameter("language", "defaultLang=\"" + vars.getLanguage() 
+ "\";");
+    xmlDocument.setParameter("alertMsg", "ALERT_MSG=\""
+      +  Utility.messageBD(this, "NoBusinessPartnerSelected", 
vars.getLanguage()) + "\";");
     xmlDocument.setParameter("theme", vars.getTheme());
     xmlDocument.setParameter("name", strNameValue);
     xmlDocument.setParameter("clients", strBpartners);
diff -r 5317f0d60a39 -r af2c6cb2d148 
src/org/openbravo/erpCommon/info/BusinessPartnerMultiple.xml
--- a/src/org/openbravo/erpCommon/info/BusinessPartnerMultiple.xml      Fri Mar 
04 09:23:21 2011 +0100
+++ b/src/org/openbravo/erpCommon/info/BusinessPartnerMultiple.xml      Wed Mar 
02 15:42:35 2011 +0100
@@ -24,6 +24,7 @@
        <PARAMETER id="paramCheckAll" name="checkAll" default="all"/>
        <PARAMETER id="paramDirectory" name="directory" default=""/>
        <PARAMETER id="paramLanguage" name="language" default=""/>
+        <PARAMETER id="paramAlertMsg" name="alertMsg" default=""/>
        <PARAMETER id="paramCSS" name="theme" attribute="href" 
replace="Default"/>
        <PARAMETER id="fieldKey" name="key" attribute="value"/>
        <PARAMETER id="fieldName" name="name" attribute="value"/>
diff -r 5317f0d60a39 -r af2c6cb2d148 
src/org/openbravo/erpCommon/info/ProductMultiple.html
--- a/src/org/openbravo/erpCommon/info/ProductMultiple.html     Fri Mar 04 
09:23:21 2011 +0100
+++ b/src/org/openbravo/erpCommon/info/ProductMultiple.html     Wed Mar 02 
15:42:35 2011 +0100

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to