details:   https://code.openbravo.com/erp/devel/pi/rev/208c8406036f
changeset: 21086:208c8406036f
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Thu Sep 05 12:18:56 2013 +0200
summary:   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

diffstat:

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

diffs (13 lines):

diff -r 90c4dc228ce9 -r 208c8406036f 
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 + 
"\"),");

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to