[OpenbravoERP-commits] devel/pi: 2 new changesets

2015-12-14 Thread hg
details:   https://code.openbravo.com/erp/devel/pi/rev/ecf8ace6112f
changeset: 28129:ecf8ace6112f
user:  RM packaging bot  openbravo.com>
date:  Mon Dec 14 15:30:08 2015 +
summary:   CI: update AD_MODULE to version 28124

details:   https://code.openbravo.com/erp/devel/pi/rev/78b3579605cd
changeset: 28130:78b3579605cd
user:  RM packaging bot  openbravo.com>
date:  Mon Dec 14 15:43:50 2015 +
summary:   CI: merge back from main

diffstat:

 modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MODULE.xml  
   |   2 +-
 
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
  |   4 +-
 
modules/org.openbravo.apachejdbcconnectionpool/src-db/database/sourcedata/AD_MODULE.xml
   |   2 +-
 
modules/org.openbravo.apachejdbcconnectionpool/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
|   2 +-
 modules/org.openbravo.base.weld/src-db/database/sourcedata/AD_MODULE.xml   
   |   2 +-
 
modules/org.openbravo.base.weld/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
   |   2 +-
 
modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MODULE.xml
 |   2 +-
 
modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
  |   8 +-
 
modules/org.openbravo.client.application/src/org/openbravo/client/application/report/ReportingUtils.java
  |   2 -
 
modules/org.openbravo.client.htmlwidget/src-db/database/sourcedata/AD_MODULE.xml
  |   2 +-
 
modules/org.openbravo.client.htmlwidget/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
   |   2 +-
 modules/org.openbravo.client.kernel/src-db/database/sourcedata/AD_MODULE.xml   
   |   2 +-
 
modules/org.openbravo.client.kernel/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
   |   6 +-
 modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_MODULE.xml 
   |   2 +-
 
modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
 |   4 +-
 
modules/org.openbravo.client.querylist/src-db/database/sourcedata/AD_MODULE.xml 
  |   2 +-
 
modules/org.openbravo.client.querylist/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
|   2 +-
 modules/org.openbravo.client.widgets/src-db/database/sourcedata/AD_MODULE.xml  
   |   2 +-
 
modules/org.openbravo.client.widgets/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
  |   2 +-
 
modules/org.openbravo.financial.paymentreport/src-db/database/sourcedata/AD_MODULE.xml
|   2 +-
 
modules/org.openbravo.financial.paymentreport/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
 |   2 +-
 
modules/org.openbravo.reports.ordersawaitingdelivery/src-db/database/sourcedata/AD_MODULE.xml
 |   2 +-
 
modules/org.openbravo.reports.ordersawaitingdelivery/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
  |   2 +-
 
modules/org.openbravo.service.datasource/src-db/database/sourcedata/AD_MODULE.xml
 |   2 +-
 
modules/org.openbravo.service.datasource/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
  |  10 +-
 
modules/org.openbravo.service.integration.google/src-db/database/sourcedata/AD_MODULE.xml
 |   2 +-
 
modules/org.openbravo.service.integration.google/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
  |   4 +-
 
modules/org.openbravo.service.integration.openid/src-db/database/sourcedata/AD_MODULE.xml
 |   2 +-
 
modules/org.openbravo.service.integration.openid/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
  |   2 +-
 modules/org.openbravo.service.json/src-db/database/sourcedata/AD_MODULE.xml
   |   2 +-
 
modules/org.openbravo.service.json/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
|   2 +-
 
modules/org.openbravo.userinterface.selector/src-db/database/sourcedata/AD_MODULE.xml
 |   2 +-
 
modules/org.openbravo.userinterface.selector/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
  |  12 +-
 
modules/org.openbravo.userinterface.skin.250to300Comp/src-db/database/sourcedata/AD_MODULE.xml
|   2 +-
 
modules/org.openbravo.userinterface.skin.250to300Comp/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
 |   2 +-
 
modules/org.openbravo.userinterface.smartclient/src-db/database/sourcedata/AD_MODULE.xml
  |   2 +-
 
modules/org.openbravo.userinterface.smartclient/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
   |   6 +-
 
modules/org.openbravo.utility.cleanup.log/src-db/database/sourcedata/AD_MODULE.xml
|   2 +-
 
modules/org.openbravo.utility.cleanup.log/src-db/datab

[OpenbravoERP-commits] devel/main: 3 new changesets

2015-12-14 Thread hg
details:   https://code.openbravo.com/erp/devel/main/rev/51a0e3b8bd3d
changeset: 28123:51a0e3b8bd3d
user:  RM packaging bot  openbravo.com>
date:  Mon Dec 14 00:58:15 2015 +
summary:   CI: merge back from main

details:   https://code.openbravo.com/erp/devel/main/rev/d4acabac1aee
changeset: 28124:d4acabac1aee
user:  Carlos Aristu  openbravo.com>
date:  Mon Dec 14 10:50:15 2015 +0100
summary:   fixes issue 31391: Combo value not selected when opening drop down 
in Edge

details:   https://code.openbravo.com/erp/devel/main/rev/ecf8ace6112f
changeset: 28125:ecf8ace6112f
user:  RM packaging bot  openbravo.com>
date:  Mon Dec 14 15:30:08 2015 +
summary:   CI: update AD_MODULE to version 28124

diffstat:

 modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MODULE.xml  
|   2 +-
 
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
   |   4 +-
 
modules/org.openbravo.apachejdbcconnectionpool/src-db/database/sourcedata/AD_MODULE.xml
|   2 +-
 
modules/org.openbravo.apachejdbcconnectionpool/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
 |   2 +-
 modules/org.openbravo.base.weld/src-db/database/sourcedata/AD_MODULE.xml   
|   2 +-
 
modules/org.openbravo.base.weld/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
|   2 +-
 
modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MODULE.xml
  |   2 +-
 
modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
   |   8 +-
 
modules/org.openbravo.client.htmlwidget/src-db/database/sourcedata/AD_MODULE.xml
   |   2 +-
 
modules/org.openbravo.client.htmlwidget/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
|   2 +-
 modules/org.openbravo.client.kernel/src-db/database/sourcedata/AD_MODULE.xml   
|   2 +-
 
modules/org.openbravo.client.kernel/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
|   6 +-
 modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_MODULE.xml 
|   2 +-
 
modules/org.openbravo.client.myob/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
  |   4 +-
 
modules/org.openbravo.client.querylist/src-db/database/sourcedata/AD_MODULE.xml 
   |   2 +-
 
modules/org.openbravo.client.querylist/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
 |   2 +-
 modules/org.openbravo.client.widgets/src-db/database/sourcedata/AD_MODULE.xml  
|   2 +-
 
modules/org.openbravo.client.widgets/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
   |   2 +-
 
modules/org.openbravo.financial.paymentreport/src-db/database/sourcedata/AD_MODULE.xml
 |   2 +-
 
modules/org.openbravo.financial.paymentreport/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
  |   2 +-
 
modules/org.openbravo.reports.ordersawaitingdelivery/src-db/database/sourcedata/AD_MODULE.xml
  |   2 +-
 
modules/org.openbravo.reports.ordersawaitingdelivery/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
   |   2 +-
 
modules/org.openbravo.service.datasource/src-db/database/sourcedata/AD_MODULE.xml
  |   2 +-
 
modules/org.openbravo.service.datasource/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
   |  10 ++--
 
modules/org.openbravo.service.integration.google/src-db/database/sourcedata/AD_MODULE.xml
  |   2 +-
 
modules/org.openbravo.service.integration.google/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
   |   4 +-
 
modules/org.openbravo.service.integration.openid/src-db/database/sourcedata/AD_MODULE.xml
  |   2 +-
 
modules/org.openbravo.service.integration.openid/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
   |   2 +-
 modules/org.openbravo.service.json/src-db/database/sourcedata/AD_MODULE.xml
|   2 +-
 
modules/org.openbravo.service.json/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
 |   2 +-
 
modules/org.openbravo.userinterface.selector/src-db/database/sourcedata/AD_MODULE.xml
  |   2 +-
 
modules/org.openbravo.userinterface.selector/src-db/database/sourcedata/AD_MODULE_DEPENDENCY.xml
   |  12 ++--
 
modules/org.openbravo.userinterface.skin.250to300Comp/src-db/datab

[OpenbravoERP-commits] devel/pi: fixes issue 31676: Some values are not shown in XLS fo...

2015-12-14 Thread hg
details:   https://code.openbravo.com/erp/devel/pi/rev/7c6686c84928
changeset: 28128:7c6686c84928
user:  Carlos Aristu  openbravo.com>
date:  Mon Dec 14 16:26:16 2015 +0100
summary:   fixes issue 31676: Some values are not shown in XLS format using MS 
Office

The detect cell type feature was not working properly for BigInteger values in 
Office after the Jasper Library Upgrade. A personalized format was applied 
causing the data not be shown when opening the report.

To solve this problem the detect cell type feature has been disabled. This way, 
by default, all the values in the XLS will be exported as strings.

This default configuration can be overriden at report level. As an example, the 
General Ledger Report and Trial Balance report have been updated properly. With 
this configuration, those reports are now using number formatting for the cells 
showing the BigDecimal values.

diffstat:

 
modules/org.openbravo.client.application/src/org/openbravo/client/application/report/ReportingUtils.java
 |   2 -
 src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerExcel.jrxml  
  |   7 +++-
 src/org/openbravo/erpCommon/ad_reports/ReportTrialBalanceExcel.jrxml   
  |  13 ++---
 3 files changed, 14 insertions(+), 8 deletions(-)

diffs (101 lines):

diff -r 45c7d09e8fd0 -r 7c6686c84928 
modules/org.openbravo.client.application/src/org/openbravo/client/application/report/ReportingUtils.java
--- 
a/modules/org.openbravo.client.application/src/org/openbravo/client/application/report/ReportingUtils.java
  Mon Dec 14 11:14:22 2015 +0100
+++ 
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/report/ReportingUtils.java
  Mon Dec 14 16:26:16 2015 +0100
@@ -556,7 +556,6 @@
   SimpleXlsReportConfiguration reportExportConfiguration = new 
SimpleXlsReportConfiguration();
   reportExportConfiguration.setOnePagePerSheet(false);
   reportExportConfiguration.setRemoveEmptySpaceBetweenRows(true);
-  reportExportConfiguration.setDetectCellType(true);
   excelExporter.setConfiguration(reportExportConfiguration);
 }
 excelExporter.setExporterInput(exporterInput);
@@ -591,7 +590,6 @@
   SimpleXlsReportConfiguration reportExportConfiguration = new 
SimpleXlsReportConfiguration();
   reportExportConfiguration.setOnePagePerSheet(false);
   reportExportConfiguration.setRemoveEmptySpaceBetweenRows(true);
-  reportExportConfiguration.setDetectCellType(true);
   excelExporter.setConfiguration(reportExportConfiguration);
 }
 excelExporter.setExporterInput(exporterInput);
diff -r 45c7d09e8fd0 -r 7c6686c84928 
src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerExcel.jrxml
--- a/src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerExcel.jrxml 
Mon Dec 14 11:14:22 2015 +0100
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedgerExcel.jrxml 
Mon Dec 14 16:26:16 2015 +0100
@@ -5,6 +5,7 @@



+   



@@ -350,7 +351,8 @@



-   

+   

+   




@@ -363,7 +365,8 @@



-   

+   

+   




diff -r 45c7d09e8fd0 -r 7c6686c84928 
src/org/openbravo/erpCommon/ad_reports/ReportTrialBalanceExcel.jrxml
--- a/src/org/openbravo/erpCommon/ad_reports/ReportTrialBalanceExcel.jrxml  
Mon Dec 14 11:14:22 2015 +0100
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportTrialBalanceExcel.jrxml  
Mon Dec 14 16:26:16 2015 +0100
@@ -5,6 +5,7 @@



+   



@@ -381,7 +382,8 @@



-   

+   

+   




@@ -394,7 +396,8 @@



-   

+   

+   




@@ -407,7 +410,8 @@



-   

+   

+   



   

[OpenbravoERP-commits] devel/pi: Fixed bug 31699: Payments after manual cash vat settle...

2015-12-14 Thread hg
details:   https://code.openbravo.com/erp/devel/pi/rev/45c7d09e8fd0
changeset: 28127:45c7d09e8fd0
user:  Víctor Martínez Romanos  openbravo.com>
date:  Mon Dec 14 11:14:22 2015 +0100
summary:   Fixed bug 31699: Payments after manual cash vat settlement

When an invoice has been already included in a Manual Cash VAT Settlement, the 
system won't create new Cash VAT management records when partially/fully paying 
the invoice.

diffstat:

 src/org/openbravo/erpCommon/utility/CashVATUtil.java |  32 ++-
 1 files changed, 30 insertions(+), 2 deletions(-)

diffs (56 lines):

diff -r 67bf31e6746a -r 45c7d09e8fd0 
src/org/openbravo/erpCommon/utility/CashVATUtil.java
--- a/src/org/openbravo/erpCommon/utility/CashVATUtil.java  Mon Dec 14 
14:11:12 2015 +0100
+++ b/src/org/openbravo/erpCommon/utility/CashVATUtil.java  Mon Dec 14 
11:14:22 2015 +0100
@@ -229,7 +229,10 @@
 
   /**
* Creates the records into the Cash VAT management table 
(InvoiceTaxCashVAT), calculating the
-   * percentage paid/collected tax amount and taxable amount. Only for cash 
vat tax rates
+   * percentage paid/collected tax amount and taxable amount. Only for cash 
vat tax rates.
+   * 
+   * If the invoice has been already settled in a Manual Cash VAT Settlement, 
we don't create a new
+   * Cash VAT management record
* 
*/
   public static void createInvoiceTaxCashVAT(final FIN_PaymentDetail 
paymentDetail,
@@ -245,7 +248,7 @@
   for (InvoiceTaxCashVAT previousITCV : previousITCashVATs) {
 OBDal.getInstance().remove(previousITCV);
   }
-} else {
+} else if (!hasManualCashVATSettlement(invoice)) {
   final boolean calculateAmountsBasedOnPercentage;
   BigDecimal percentage = null; /* Calculate it later on */
   final BigDecimal outstandingAmt = invoice.getOutstandingAmount();
@@ -302,6 +305,31 @@
   }
 
   /**
+   * Returns true if the invoice has a manual cash vat settlement associated
+   */
+  public static boolean hasManualCashVATSettlement(final Invoice invoice) {
+try {
+  OBContext.setAdminMode(true);
+
+  final StringBuffer hql = new StringBuffer();
+  hql.append(" select itcv.id ");
+  hql.append(" from InvoiceTaxCashVAT itcv ");
+  hql.append(" inner join itcv.invoiceTax it ");
+  hql.append(" where it.invoice.id = :invoiceId ");
+  hql.append(" and itcv.isManualSettlement = true ");
+
+  final Session session = OBDal.getInstance().getSession();
+  final Query query = session.createQuery(hql.toString());
+  query.setParameter("invoiceId", invoice.getId());
+  query.setMaxResults(1);
+
+  return !query.list().isEmpty();
+} finally {
+  OBContext.restorePreviousMode();
+}
+  }
+
+  /**
* Gets the InvoiceTaxCashVAT records linked to the payment detail
*/
   public static List getInvoiceTaxCashVAT(final 
FIN_PaymentDetail paymentDetail) {

--
___
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits


[OpenbravoERP-commits] devel/pi: Fixed issue 26349: Robustness:Improve handling of disa...

2015-12-14 Thread hg
details:   https://code.openbravo.com/erp/devel/pi/rev/67bf31e6746a
changeset: 28126:67bf31e6746a
user:  Inigo Sanchez  openbravo.com>
date:  Mon Dec 14 14:11:12 2015 +0100
summary:   Fixed issue 26349: Robustness:Improve handling of disabling triggers.

It has been improved the handling of disabling triggers by throwing
exceptions in enable() and disable() methods instead of error logs.

Now an exception is thrown if there is a problem in enable() and
disable() methods.

Besides it has been added a change to improve where clear() method
is invoked.

diffstat:

 src/org/openbravo/dal/core/TriggerHandler.java  |  10 ++
 src/org/openbravo/service/system/SystemService.java |   4 +++-
 2 files changed, 9 insertions(+), 5 deletions(-)

diffs (64 lines):

diff -r f8182b504a55 -r 67bf31e6746a 
src/org/openbravo/dal/core/TriggerHandler.java
--- a/src/org/openbravo/dal/core/TriggerHandler.javaThu Dec 10 19:24:07 
2015 +0100
+++ b/src/org/openbravo/dal/core/TriggerHandler.javaMon Dec 14 14:11:12 
2015 +0100
@@ -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) 2008-2012 Openbravo SLU 
+ * All portions are Copyright (C) 2008-2015 Openbravo SLU 
  * All Rights Reserved. 
  * Contributor(s):  __.
  
@@ -24,6 +24,7 @@
 import java.sql.SQLException;
 
 import org.apache.log4j.Logger;
+import org.openbravo.base.exception.OBException;
 import org.openbravo.base.provider.OBProvider;
 import org.openbravo.base.util.Check;
 import org.openbravo.dal.service.OBDal;
@@ -68,7 +69,7 @@
   ps.executeUpdate();
   sessionStatus.set(Boolean.TRUE);
 } catch (Exception e) {
-  log.error("Couldn't disable triggers: ", e);
+  throw new OBException("Couldn't disable triggers: ", e);
 } finally {
   try {
 ps.close();
@@ -105,10 +106,11 @@
 try {
   ps = con.prepareStatement("DELETE FROM AD_SESSION_STATUS");
   ps.executeUpdate();
-  sessionStatus.set(null);
 } catch (Exception e) {
-  log.error("Couldn't enable triggers: ", e);
+  throw new OBException("Couldn't disable triggers: ", e);
 } finally {
+  // always clear the threadlocal
+  clear();
   try {
 ps.close();
   } catch (SQLException e) {
diff -r f8182b504a55 -r 67bf31e6746a 
src/org/openbravo/service/system/SystemService.java
--- a/src/org/openbravo/service/system/SystemService.java   Thu Dec 10 
19:24:07 2015 +0100
+++ b/src/org/openbravo/service/system/SystemService.java   Mon Dec 14 
14:11:12 2015 +0100
@@ -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) 2009-2014 Openbravo SLU 
+ * All portions are Copyright (C) 2009-2015 Openbravo SLU 
  * All Rights Reserved. 
  * Contributor(s):  __.
  
@@ -226,6 +226,8 @@
   TriggerHandler.getInstance().enable();
   OBDal.getInstance().commitAndClose();
 } finally {
+  // always clear the threadlocal
+  TriggerHandler.getInstance().clear();
   OBContext.restorePreviousMode();
 }
   }

--
___
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits


[OpenbravoERP-commits] devel/pi: Fixes issue 30149: Add accounting to Salaries G/L Item...

2015-12-14 Thread hg
details:   https://code.openbravo.com/erp/devel/pi/rev/f8182b504a55
changeset: 28125:f8182b504a55
user:  Alvaro Ferraz  openbravo.com>
date:  Thu Dec 10 19:24:07 2015 +0100
summary:   Fixes issue 30149: Add accounting to Salaries G/L Item in QA client

diffstat:

 referencedata/sampledata/QA_Testing/C_GLITEM_ACCT.xml |  30 +++
 1 files changed, 30 insertions(+), 0 deletions(-)

diffs (40 lines):

diff -r d4acabac1aee -r f8182b504a55 
referencedata/sampledata/QA_Testing/C_GLITEM_ACCT.xml
--- a/referencedata/sampledata/QA_Testing/C_GLITEM_ACCT.xml Mon Dec 14 
10:50:15 2015 +0100
+++ b/referencedata/sampledata/QA_Testing/C_GLITEM_ACCT.xml Thu Dec 10 
19:24:07 2015 +0100
@@ -1,6 +1,36 @@
 
 
 
+  

+  
+  

+  
+  
+  
+  
+  
+  
+  
+  

+  

+
+
+
+  

+  
+  

+  
+  
+  
+  
+  
+  
+  
+  

+  

+
+
+
   

   
   


--
___
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits


[OpenbravoERP-commits] devel/pi: fixes issue 31391: Combo value not selected when openi...

2015-12-14 Thread hg
details:   https://code.openbravo.com/erp/devel/pi/rev/d4acabac1aee
changeset: 28124:d4acabac1aee
user:  Carlos Aristu  openbravo.com>
date:  Mon Dec 14 10:50:15 2015 +0100
summary:   fixes issue 31391: Combo value not selected when opening drop down 
in Edge

diffstat:

 
modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/isomorphic/ISC_Combined.js
 |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 51a0e3b8bd3d -r d4acabac1aee 
modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/isomorphic/ISC_Combined.js
--- 
a/modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/isomorphic/ISC_Combined.js
Mon Dec 14 00:58:15 2015 +
+++ 
b/modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/isomorphic/ISC_Combined.js
Mon Dec 14 10:50:15 2015 +0100
@@ -8654,7 +8654,7 @@
 this.setSelectionRange(_3[0],_3[1])}
 this.clearCompletion()},isc.A.$173y=function 
isc_FormItem__canSetSelectionRange(){if(!isc.isA.TextItem(this)&&!isc.isA.TextAreaItem(this))return
 false;return true},isc.A.setSelectionRange=function 
isc_FormItem_setSelectionRange(_1,_2){if(!isc.isA.TextItem(this)&&!isc.isA.TextAreaItem(this))return;if(!this.isDrawn())return;if(!isc.isA.Number(_1))_1=0;if(!isc.isA.Number(_2))_2=0;if(_1>_2){var
 _3=_2;_2=_1;_1=_3}
 var 
_4=this.getDataElement();if(_4==null)return;if(this.logIsInfoEnabled("nativeFocus")&&!this.$820()){this.logInfo("setSelectionRange()
 about to change focus 
"+isc.EH.$lb()+(this.logIsDebugEnabled("traceFocus")?this.getStackTrace():""),"nativeFocus")}
-if(isc.Browser.isIE){isc.EH.$904=true;var 
_5=_4.createTextRange();_5.collapse(true);_5.moveStart(this.$14n,_1);_5.moveEnd(this.$14n,(_2-_1));_5.select();delete
 isc.EH.$904}else{_4.focus();_4.setSelectionRange(_1,_2)}
+if(isc.Browser.isIE){isc.EH.$904=true;var 
_5=_4.createTextRange();_5.collapse(true);_5.moveStart(this.$14n,_1);_5.moveEnd(this.$14n,(_2-_1));_5.select();delete
 
isc.EH.$904}else{_4.focus();isc.EH.$904=true;_4.setSelectionRange(_1,_2);return 
isc.EH.$904}
 if(_2>_1)this.$1161=[_1,_2]},isc.A.selectValue=function 
isc_FormItem_selectValue(){var 
_1=this.getElementValue(),_2=isc.isA.String(_1)?_1.length:0;this.setSelectionRange(0,_2)},isc.A.deselectValue=function
 
isc_FormItem_deselectValue(_1){if(!this.hasFocus)return;if(_1)this.setSelectionRange(0,0);else{var
 
_2=this.getElementValue(),_3=isc.isA.String(_2)?_2.length:0;this.setSelectionRange(_3,_3)}},isc.A.getSelectionRange=function
 
isc_FormItem_getSelectionRange(_1){if(!this.$173y())return;if(isc.isA.UploadItem(this))return;var
 
_2=this.getDataElement();if(_2==null)return;if(isc.Browser.isIE&&isc.Browser.version<10){if(!this.$820())return
 null;var _3=this.$17p();if(_3==null)return 
null;if(isc.isA.TextAreaItem(this)){if(!this.supportsSelectionRange)return 
null;var _4=_3.duplicate();_4.moveToElementText(_2);var 
_5=_4.text.length;_4.setEndPoint(this.$119o,_3);var 
i=_5-_4.text.length;return[i,i+_3.text.length]}else{var 
_7=[],_4=_2.createTextRange();if(_4==null)return null;if(_4.compareEndPoint
 
s(this.$14o,_3)==0){_7[1]=_4.text.length}else{_4.setEndPoint(this.$14o,_3);_7[1]=_4.text.length}
 _4.setEndPoint(this.$14p,_3);_7[0]=_4.text.length;return _7}}else 
if(isc.Browser.isMoz||isc.Browser.isSafari||isc.Browser.isOpera||isc.Browser.isIE){return[_2.selectionStart,_2.selectionEnd]}},isc.A.$820=function
 isc_FormItem__hasNativeFocus(){var 
_1=this.getFocusElement(),_2=this.getActiveElement();return(_1==_2)},isc.A.getSelectedText=function
 
isc_FormItem_getSelectedText(){if(!isc.isA.TextItem(this)&&!isc.isA.TextAreaItem(this)){return}
 if(isc.Browser.isIE){var _1=this.$17p();if(_1)return _1.text}else 
if(isc.Browser.isMoz||isc.Browser.isSafari){var 
_2=this.getElement();if(_2!=null){return 
_2.value.substring(_2.selectionStart,_2.selectionEnd)}}},isc.A.$100a=function 
isc_FormItem__IESelectionStuck(){if(!isc.Browser.isIE)return false;try{var 
_1=document.selection?document.selection.typeDetail:null}catch(e){this.logDebug("Internet
 explorer native 'stuck focus' state detected");return true}

--
___
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits