You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by si...@apache.org on 2006/12/08 00:26:53 UTC

svn commit: r483734 - /incubator/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java

Author: sichen
Date: Thu Dec  7 15:26:53 2006
New Revision: 483734

URL: http://svn.apache.org/viewvc?view=rev&rev=483734
Log:
trivial change to set adjustment amount to BigDecimal ZERO

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

Modified: incubator/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java?view=diff&rev=483734&r1=483733&r2=483734
==============================================================================
--- incubator/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java (original)
+++ incubator/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java Thu Dec  7 15:26:53 2006
@@ -493,7 +493,7 @@
                             continue;
                         }
         
-                        BigDecimal amount = new BigDecimal(0);
+                        BigDecimal amount = ZERO;
                         if (adj.get("amount") != null) { 
                             // pro-rate the amount
                             // set decimals = 100 means we don't round this intermediate value, which is very important