Class AR_Customer_svc

Properties

LOCAL cMainTable$="AR_Customer"  
LOCAL cIsSysDB  
LOCAL cOpenItemBalForward$  
LOCAL cCreditAvailable$="Available"  

[string] Credit status available description

LOCAL cCreditAtLimit$="At limit"  

[string] Credit status at limit description

LOCAL cCreditExceeded$="Exceeded"  

[string] Credit status exceeded description

LOCAL cCreditOnHold$="On hold"  

[string] Credit status on hold description

PROPERTY BillToExists   * Read Only *
PROPERTY BillToDivisionNo$   * Read Only *
PROPERTY BillToCustomerNo$   * Read Only *
PROPERTY UseBillToCreditLimit   * Read Only *
PROPERTY UseBillToCreditHold   * Read Only *
PROPERTY UseBillToCustPricing   * Read Only *
PROPERTY UseBillToAddress   * Read Only *
PROPERTY UseBillToTermsCode   * Read Only *
PROPERTY CheckForInactiveCustomerStatus  
PROPERTY CheckForPurchaseControl  
PROPERTY PurchaseControlRetVal   * Read Only *
PROPERTY CreditRights   * Read Only *
PROPERTY CreditExceeded   * Read Only *
PROPERTY CreditHold   * Read Only *
PROPERTY CreditWarning$   * Read Only *
PROPERTY JobSvc  
PROPERTY OrderTotal GET ORDER_TOTAL SET ERR ! This is only applicable in SO Invoice Data Entry, used in credit limit checking   * Read Only *
PROPERTY CustomerNumber$   * Read Only *
PROPERTY EBMEnabledOnly$  
PROPERTY UserID$ ! If EBM Enabled only, the UserID$ value may need to be validated against the EBMConsumerUserID field  
PROPERTY AgingCalculated   * Read Only *

Methods

FUNCTION CheckCredit(tmpDiv$, tmpCust$)  
FUNCTION CheckCredit(tmpDiv$, tmpCust$, docTotal)  
FUNCTION CheckCredit(tmpDiv$, tmpCust$, docTotal, ordTotal)  
FUNCTION CheckCredit(tmpDiv$, tmpCust$, docTotal, ordTotal, recalcAging)  
FUNCTION CheckCustomerStatus(tmpDiv$, tmpCust$)  
FUNCTION CheckCustomerStatus(tmpDiv$, tmpCust$, isBillTo)  
FUNCTION DoAdditionalValidation(div$, cust$, state$)  
FUNCTION Find(key$)  
FUNCTION GetCodeFormat(codeFormat$)  

Returns the expression used to format the code or display key for this record type.

ParameterDescription
codeFormat$ [output, string] Returned code format expression.
Returns [nothing] Exits without a return value.
FUNCTION GetCreditRemaining(creditBalance, creditRemaining, agingCreditBalance, agingCreditRemaining)  

Gets the current customer's remaining credit per the applicable A/R module options.

ParameterDescription
creditBalance [output, numeric] Credit balance based on A/R module options.
creditRemaining [output, numeric] Credit remaining based on customer credit limit and A/R module options.
agingCreditBalance [output, numeric] Balance of aging categories used to determine credit balance in A/R module options.
agingCreditRemaining [output, numeric] Credit remaining based on Aging balance exceeds amount in A/R module options.
Returns [boolean] True = success, False = failure
FUNCTION GetCustomerBalance(tmpDiv$, tmpCust$, tmpBalance)  
FUNCTION GetNameFormat(nameFormat$)  

Returns the expression used to format the name for this record type.

ParameterDescription
nameFormat$ [output, string] Returned name format expression.
Returns [nothing] Exits without a return value.
FUNCTION GetRecordEx(record$, iol$)  

Override of the extended GetRecord to append the record and iolist with CreditRemaining.

Returns [boolean] True = success, False = failure
FUNCTION IsValid(key$)  
FUNCTION SetParentHandle(parentHandle)