You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ha...@apache.org on 2008/06/24 16:20:12 UTC

svn commit: r671182 - /ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/invoice/EditInvoice.groovy

Author: hansbak
Date: Tue Jun 24 07:20:12 2008
New Revision: 671182

URL: http://svn.apache.org/viewvc?rev=671182&view=rev
Log:
groovy double conversion problem

Modified:
    ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/invoice/EditInvoice.groovy

Modified: ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/invoice/EditInvoice.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/invoice/EditInvoice.groovy?rev=671182&r1=671181&r2=671182&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/invoice/EditInvoice.groovy (original)
+++ ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/invoice/EditInvoice.groovy Tue Jun 24 07:20:12 2008
@@ -49,7 +49,7 @@
   if (otherCurrency && invoice.currencyUomId && !otherCurrency.equals(invoice.currencyUomId)) {
     result = dispatcher.runSync("convertUom", [uomId : invoice.currencyUomId, 
                                                uomIdTo : otherCurrency, 
-                                               originalValue : 1.00, 
+                                               originalValue : new Double("1.00"), 
                                                asOfDate : invoice.invoiceDate]);
     
     if (result.convertedValue != null) {