Author: jleroux
Date: Mon Sep 26 10:30:30 2011
New Revision: 1175776
URL:
http://svn.apache.org/viewvc?rev=1175776&view=revLog:
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();