Small refactoring for:

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:
Carlos Ruiz 2009-11-25 19:03:40 +00:00
parent ddd5810770
commit 9d18eb05b0
1 changed files with 1 additions and 6 deletions

View File

@ -1230,12 +1230,7 @@ public class MOrder extends X_C_Order implements DocAction
&& !MSysConfig.getBooleanValue("CHECK_CREDIT_ON_PREPAY_ORDER", true, getAD_Client_ID(), getAD_Org_ID())) {
// ignore -- don't validate Prepay Orders depending on sysconfig parameter
} else {
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());
}
MBPartner bp = new MBPartner (getCtx(), getBill_BPartner_ID(), get_TrxName()); // bill bp is guaranteed on beforeSave
if (MBPartner.SOCREDITSTATUS_CreditStop.equals(bp.getSOCreditStatus()))
{