Fix bug [ 2141475 ] Payment <> allocations must not be completed
This commit is contained in:
parent
c99cd970dc
commit
a2b18b1807
|
@ -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;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue