details:   https://code.openbravo.com/erp/devel/pi/rev/e364b1c3d2d7
changeset: 17815:e364b1c3d2d7
user:      Carlos Aristu <carlos.aristu <at> openbravo.com>
date:      Fri Aug 31 11:08:22 2012 +0200
summary:   related to issue 20931: fixes numeric comparation

diffstat:

 src-db/database/sourcedata/AD_AUXILIARINPUT.xml                 |  2 +-
 src/org/openbravo/erpCommon/ad_callouts/SE_Expense_Product.java |  5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 61c74db7ded8 -r e364b1c3d2d7 
src-db/database/sourcedata/AD_AUXILIARINPUT.xml
--- a/src-db/database/sourcedata/AD_AUXILIARINPUT.xml   Fri Aug 31 10:32:08 
2012 +0200
+++ b/src-db/database/sourcedata/AD_AUXILIARINPUT.xml   Fri Aug 31 11:08:22 
2012 +0200
@@ -1116,7 +1116,7 @@
 <!--47F42EA77ACD4026AF7F41C2D90146C4-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--47F42EA77ACD4026AF7F41C2D90146C4-->  <AD_TAB_ID><![CDATA[413]]></AD_TAB_ID>
 <!--47F42EA77ACD4026AF7F41C2D90146C4-->  
<NAME><![CDATA[lastNetUnitPrice]]></NAME>
-<!--47F42EA77ACD4026AF7F41C2D90146C4-->  <CODE><![CDATA[N]]></CODE>
+<!--47F42EA77ACD4026AF7F41C2D90146C4-->  <CODE><![CDATA[0]]></CODE>
 <!--47F42EA77ACD4026AF7F41C2D90146C4-->  
<AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--47F42EA77ACD4026AF7F41C2D90146C4--></AD_AUXILIARINPUT>
 
diff -r 61c74db7ded8 -r e364b1c3d2d7 
src/org/openbravo/erpCommon/ad_callouts/SE_Expense_Product.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SE_Expense_Product.java   Fri Aug 
31 10:32:08 2012 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SE_Expense_Product.java   Fri Aug 
31 11:08:22 2012 +0200
@@ -55,9 +55,10 @@
       String strTabId = vars.getStringParameter("inpTabId");
       String strInvPrice = vars.getNumericParameter("inpinvoiceprice");
       String strWindowId = vars.getStringParameter("inpwindowId");
-      String strlastNetUnitPrice = vars.getSessionValue(strWindowId + 
"|lastNetUnitPrice");
+      String strlastNetUnitPrice = 
vars.getNumericGlobalVariable("inplastNetUnitPrice", strWindowId
+          + "|lastNetUnitPrice", "0");
 
-      if (strlastNetUnitPrice.equals("N")) {
+      if (strlastNetUnitPrice.equals("0")) {
         strlastNetUnitPrice = strInvPrice;
       }
       try {

------------------------------------------------------------------------------
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