You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2011/09/26 12:30:31 UTC

svn commit: r1175776 - /ofbiz/branches/release09.04/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java

Author: jleroux
Date: Mon Sep 26 10:30:30 2011
New Revision: 1175776

URL: http://svn.apache.org/viewvc?rev=1175776&view=rev
Log:
Oops wrong commit at r1175745, thanks buildbot!

Modified:
    ofbiz/branches/release09.04/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java

Modified: ofbiz/branches/release09.04/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java?rev=1175776&r1=1175775&r2=1175776&view=diff
==============================================================================
--- ofbiz/branches/release09.04/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java (original)
+++ ofbiz/branches/release09.04/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java Mon Sep 26 10:30:30 2011
@@ -779,9 +779,10 @@ public class InvoiceServices {
                 // apply these payments to the invoice if they have any remaining amount to apply
                 Iterator cpi = currentPayments.iterator();
                 while (cpi.hasNext()) {
+                    GenericValue payment = (GenericValue) cpi.next();
+
                     if ("PMNT_VOID".equals(payment.getString("statusId")) || "PMNT_CANCELLED".equals(payment.getString("statusId")))  continue;
                     
-                    GenericValue payment = (GenericValue) cpi.next();
                     BigDecimal notApplied = PaymentWorker.getPaymentNotApplied(payment);
                     if (notApplied.signum() > 0) {
                         Map appl = new HashMap();