Fix bug [ 2141475 ] Payment <> allocations must not be completed

This commit is contained in:
Carlos Ruiz 2008-10-08 21:06:12 +00:00
parent c99cd970dc
commit a2b18b1807
1 changed files with 2 additions and 2 deletions

View File

@ -1461,9 +1461,9 @@ public final class MPayment extends X_C_Payment
if (pAllocs.length > 0) { if (pAllocs.length > 0) {
for (MPaymentAllocate pAlloc : pAllocs) for (MPaymentAllocate pAlloc : pAllocs)
sumPaymentAllocates = sumPaymentAllocates.add(pAlloc.getAmount()); sumPaymentAllocates = sumPaymentAllocates.add(pAlloc.getAmount());
if (getPayAmt().compareTo(sumPaymentAllocates) != 0)
return false;
} }
if (getPayAmt().compareTo(sumPaymentAllocates) != 0)
return false;
return true; return true;
} }