From a2b18b1807d5d6729955b1ed564e107212c9d541 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 8 Oct 2008 21:06:12 +0000 Subject: [PATCH] Fix bug [ 2141475 ] Payment <> allocations must not be completed --- base/src/org/compiere/model/MPayment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/src/org/compiere/model/MPayment.java b/base/src/org/compiere/model/MPayment.java index 70d0585f1c..be3f591b54 100644 --- a/base/src/org/compiere/model/MPayment.java +++ b/base/src/org/compiere/model/MPayment.java @@ -1461,9 +1461,9 @@ public final class MPayment extends X_C_Payment if (pAllocs.length > 0) { for (MPaymentAllocate pAlloc : pAllocs) sumPaymentAllocates = sumPaymentAllocates.add(pAlloc.getAmount()); + if (getPayAmt().compareTo(sumPaymentAllocates) != 0) + return false; } - if (getPayAmt().compareTo(sumPaymentAllocates) != 0) - return false; return true; }