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 2009/02/02 03:26:12 UTC

svn commit: r739905 - /ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceWorker.java

Author: hansbak
Date: Mon Feb  2 02:26:11 2009
New Revision: 739905

URL: http://svn.apache.org/viewvc?rev=739905&view=rev
Log:
issue OFBIZ-2160 taxtotal added twice

Modified:
    ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceWorker.java

Modified: ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceWorker.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceWorker.java?rev=739905&r1=739904&r2=739905&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceWorker.java (original)
+++ ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceWorker.java Mon Feb  2 02:26:11 2009
@@ -182,7 +182,7 @@
         if (UtilValidate.isNotEmpty(invoiceTotal) && !actualCurrency) {
             invoiceTotal = invoiceTotal.multiply(getInvoiceCurrencyConversionRate(invoice)).setScale(decimals,rounding);
         }
-        return invoiceTotal.add(invoiceTaxTotal).setScale(decimals, rounding);
+        return invoiceTotal;
     }
 
     /**