fixed bug 24696: error in log when empty product selector in Order window
authorAsier Lostalé <asier.lostale@openbravo.com>
Thu, 05 Sep 2013 12:18:56 +0200
changeset 21086 208c8406036f
parent 21085 90c4dc228ce9
child 21087 6522c822ca55
fixed bug 24696: error in log when empty product selector in Order window

if price actual is not calculated because there's no product set 0 instead of blank
src/org/openbravo/erpCommon/ad_callouts/SL_Order_Product.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_Order_Product.java	Thu Sep 05 11:16:43 2013 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_Order_Product.java	Thu Sep 05 12:18:56 2013 +0200
@@ -170,7 +170,8 @@
           + (strPriceLimit.equals("") ? "0" : strPriceLimit) + "),");
       resultado.append("new Array(\"inppricestd\", " + (strPriceStd.equals("") ? "0" : strPriceStd)
           + "),");
-      resultado.append("new Array(\"inppriceactual\", " + strPriceActual + "),");
+      resultado.append("new Array(\"inppriceactual\", "
+          + (strPriceActual.equals("") ? "0" : strPriceActual) + "),");
     }
     if (!"".equals(strCurrency)) {
       resultado.append("new Array(\"inpcCurrencyId\", \"" + strCurrency + "\"),");