details:   https://code.openbravo.com/erp/devel/main/rev/c695ee7b6789
changeset: 16743:c695ee7b6789
user:      Antonio Moreno <antonio.moreno <at> openbravo.com>
date:      Tue Jun 12 13:49:31 2012 +0200
summary:   Fixed issue 20734. Readded optimization.
Without the optimization, the results generated by the Javascript parsing were 
different. In this specific example, the value 102 was transformed into a 
double (102.0), and this produced the error described in the issue.

details:   https://code.openbravo.com/erp/devel/main/rev/d8238ce3ca05
changeset: 16744:d8238ce3ca05
user:      Javier Etxarri <javier.echarri <at> openbravo.com>
date:      Tue Jun 12 15:51:15 2012 +0200
summary:   Fixes issue 20736: "Return" check box which can be found in the 
"Document Type" window is not working

diffstat:

 
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
 |  1 -
 src-db/database/model/functions/C_INVOICE_POST.xml                             
                                       |  2 +-
 2 files changed, 1 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 05873cc04398 -r d8238ce3ca05 
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
--- 
a/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
     Fri Jun 08 16:09:10 2012 +0200
+++ 
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
     Tue Jun 12 15:51:15 2012 +0200
@@ -1435,7 +1435,6 @@
     }
     try {
       Context cx = Context.enter();
-      cx.setOptimizationLevel(-1);
       Scriptable scope = cx.initStandardObjects();
       cx.evaluateString(scope, resp, "<cmd>", 1, null);
       NativeArray array = (NativeArray) scope.get("respuesta", scope);
diff -r 05873cc04398 -r d8238ce3ca05 
src-db/database/model/functions/C_INVOICE_POST.xml
--- a/src-db/database/model/functions/C_INVOICE_POST.xml        Fri Jun 08 
16:09:10 2012 +0200
+++ b/src-db/database/model/functions/C_INVOICE_POST.xml        Tue Jun 12 
15:51:15 2012 +0200
@@ -313,7 +313,7 @@
         AND c_invoice_id = v_Record_ID
         AND NOT EXISTS (SELECT 1 FROM c_invoiceline L
                        LEFT JOIN M_PRODUCT P ON L.M_PRODUCT_ID = P.M_PRODUCT_ID
-                       LEFT JOIN C_DISCOUNT CD ON 
CD.M_PRODUCT_ID=P.M_PRODUCT_ID
+                       JOIN C_DISCOUNT CD ON CD.M_PRODUCT_ID=P.M_PRODUCT_ID
                        WHERE P.M_PRODUCT_ID=C_INVOICELINE.M_PRODUCT_ID);
 
       IF (v_count <> 0) THEN

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to