Hi Everybody
Can we setup in standard a way to check or not CreditLimit when validating a Customer Protest Journal ?
By now, I'm just basing on customer posting profile which i check by coding (hardcoded) in CustVendVoucher Class (Method : validate()), and when this posting profile is related to Protesting so I miss this CreditLimitCheck (When making a PackingSlip or Invoice, this check is mandatory of corse), so to not be missed!), like this :
public boolean validate() { boolean ret = true; ;
// PostingProfile check added by me if (postingProfile == "MyProtestProfile"){ ret = true; }else { if (ret && !this.parmBypassCreditCheck() && !this.isAmountBelowCreditMax(typeOfCreditmaxCheck) && !this.postingProfileSettlement()) { ret = false; } } return ret; }
The standard Method was like that :
public boolean validate() { boolean ret = true; ; if (ret && !this.parmBypassCreditCheck() && !this.isAmountBelowCreditMax(typeOfCreditmaxCheck) && !this.postingProfileSettlement()) { ret = false; } return ret; }
My Account receivable parameters are like what you can see in the attached picture.
Thanks in advance :)