details:   https://code.openbravo.com/erp/devel/main/rev/0e8d39501243
changeset: 16746:0e8d39501243
user:      Mikel Irurita <mikel.irurita <at> openbravo.com>
date:      Wed Jun 20 17:21:28 2012 +0200
summary:   Fixes issue 20811: Product selector in window sales order is broken.
Do not update the currency on order line when no product is selected

diffstat:

 src/org/openbravo/erpCommon/ad_callouts/SL_Order_Product.java |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r e97a3e96d950 -r 0e8d39501243 
src/org/openbravo/erpCommon/ad_callouts/SL_Order_Product.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_Order_Product.java     Thu Jun 
14 16:08:17 2012 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_Order_Product.java     Wed Jun 
20 17:21:28 2012 +0200
@@ -145,8 +145,9 @@
         + "),");
     resultado.append("new Array(\"inppriceactual\", "
         + (strPriceActual.equals("") ? "0" : strPriceActual) + "),");
-    resultado.append("new Array(\"inpcCurrencyId\", "
-        + (strCurrency.equals("") ? "\"\"" : strCurrency) + "),");
+    if (!"".equals(strCurrency)) {
+      resultado.append("new Array(\"inpcCurrencyId\", \"" + strCurrency + 
"\"),");
+    }
     resultado.append("new Array(\"inpdiscount\", " + discount.toString() + 
"),");
     if (!strMProductID.equals("")) {
       PAttributeSetData[] dataPAttr = 
PAttributeSetData.selectProductAttr(this, strMProductID);

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