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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

hansbak-2
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) {