details:   https://code.openbravo.com/erp/devel/pi/rev/899980d88f09
changeset: 16878:899980d88f09
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 99602b3c2a17 -r 899980d88f09 
src/org/openbravo/erpCommon/ad_callouts/SL_Order_Product.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_Order_Product.java     Wed Jun 
20 17:03:55 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