BF [2903925] - Credit Limit check when Invoice BP is <> from Ship BP
https://sourceforge.net/tracker/?func=detail&aid=2903925&group_id=176962&atid=879332
This commit is contained in:
parent
4a3169246e
commit
ddd5810770
|
@ -1230,7 +1230,13 @@ public class MOrder extends X_C_Order implements DocAction
|
||||||
&& !MSysConfig.getBooleanValue("CHECK_CREDIT_ON_PREPAY_ORDER", true, getAD_Client_ID(), getAD_Org_ID())) {
|
&& !MSysConfig.getBooleanValue("CHECK_CREDIT_ON_PREPAY_ORDER", true, getAD_Client_ID(), getAD_Org_ID())) {
|
||||||
// ignore -- don't validate Prepay Orders depending on sysconfig parameter
|
// ignore -- don't validate Prepay Orders depending on sysconfig parameter
|
||||||
} else {
|
} else {
|
||||||
MBPartner bp = new MBPartner (getCtx(), getC_BPartner_ID(), get_TrxName());
|
MBPartner bp = null;
|
||||||
|
if (getC_BPartner_ID() != getBill_BPartner_ID()) {
|
||||||
|
bp = new MBPartner (getCtx(), getBill_BPartner_ID(), get_TrxName());
|
||||||
|
} else {
|
||||||
|
bp = new MBPartner (getCtx(), getC_BPartner_ID(), get_TrxName());
|
||||||
|
}
|
||||||
|
|
||||||
if (MBPartner.SOCREDITSTATUS_CreditStop.equals(bp.getSOCreditStatus()))
|
if (MBPartner.SOCREDITSTATUS_CreditStop.equals(bp.getSOCreditStatus()))
|
||||||
{
|
{
|
||||||
m_processMsg = "@BPartnerCreditStop@ - @TotalOpenBalance@="
|
m_processMsg = "@BPartnerCreditStop@ - @TotalOpenBalance@="
|
||||||
|
|
Loading…
Reference in New Issue