Author: jleroux
Date: Sat Mar 27 08:18:43 2010
New Revision: 928171
URL:
http://svn.apache.org/viewvc?rev=928171&view=revLog:
Forgot the 3d case in r928166
Modified:
ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/invoice/ListNotAppliedPayments.groovy
Modified: ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/invoice/ListNotAppliedPayments.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/invoice/ListNotAppliedPayments.groovy?rev=928171&r1=928170&r2=928171&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/invoice/ListNotAppliedPayments.groovy (original)
+++ ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/invoice/ListNotAppliedPayments.groovy Sat Mar 27 08:18:43 2010
@@ -74,7 +74,7 @@ List getPayments(List payments, boolean
paymentMap.currencyUomId = payment.currencyUomId;
paymentToApply = payment.getBigDecimal("amount")?.setScale(decimals,rounding).subtract(paymentApplied);
}
- if (paymentToApply.signum() == 1) {
+ if (paymentToApply?.signum() == 1) {
paymentMap.paymentId = payment.paymentId;
paymentMap.effectiveDate = payment.effectiveDate;
if (paymentToApply.compareTo(invoiceToApply) < 0 ) {