merge 45fdbcf
This commit is contained in:
commit
5a5243d1ff
|
@ -1623,8 +1623,14 @@ 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)
|
if (getPayAmt().compareTo(sumPaymentAllocates) != 0) {
|
||||||
|
if (isReceipt() && getPayAmt().compareTo(sumPaymentAllocates) < 0) {
|
||||||
|
if (MSysConfig.getBooleanValue("ALLOW_OVER_APPLIED_PAYMENT", false, Env.getAD_Client_ID(Env.getCtx()))) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue