CustCreditLimit Class [AX 2012]

The CustCreditLimit class manages the credit limit excess calculation.

class CustCreditLimit

Run On

Called

  MethodDescription
Gg776215.protmethod(en-us,AX.60).gif addAgreementCondition_RU Adds the agreement range.
Gg776215.pubmethod(en-us,AX.60).gif addAmountMST Adds an amount that was not previously specified to the value of the current sales order.
Gg776215.pubmethod(en-us,AX.60).gif agreementCheckInit_RU Initializes internal variables that are associated with the agreement that is used in the credit limit excess calculation.
Gg776215.pubmethod(en-us,AX.60).gif balance
Gg776215.pubmethod(en-us,AX.60).gif balanceAdditional Adds a previously unspecified value to the Open balance amount.
Gg776215.pubmethod(en-us,AX.60).gif balanceDelivered Returns the amount of an outstanding packing slip that has not yet been invoiced.
Gg776215.pubmethod(en-us,AX.60).gif balanceEstimate Returns the total estimated amount for the specific invoice account.
Gg776215.pubmethod(en-us,AX.60).gif balanceInvoiced Returns the total amount in the standard currency that is currently open (posted) on the customer.
Gg776215.pubmethod(en-us,AX.60).gif balanceMarked_RU
Gg776215.pubmethod(en-us,AX.60).gif balanceNotInvoiced Returns the amount of open sales orders including the delivered (packing slip updated) amounts.
Gg776215.pubmethod(en-us,AX.60).gif balanceTotals Returns the balance of the SalesTotals class, if any is specified.
Gg776215.pubmethod(en-us,AX.60).gif calcCreditAvailable
Gg776215.protmethod(en-us,AX.60).gif calculateBalance
Gg776215.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Gg776215.pubmethod(en-us,AX.60).gif check Performs the actual credit limit excess check.
Gg776215.pubmethod(en-us,AX.60).gif currency
Gg776215.pubmethod(en-us,AX.60).gif custParameters
Gg776215.pubmethod(en-us,AX.60).gif custTable
Gg776215.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Gg776215.pubmethod(en-us,AX.60).gif exchangeRate
Gg776215.pubmethod(en-us,AX.60).gif getBalance Calculates balance tat will be used against the credit limit when the credit check is done.
Gg776215.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Gg776215.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Gg776215.pubmethod(en-us,AX.60).gif init Initializes the variables of the class.
Gg776215.protmethod(en-us,AX.60).gif initQuery
Gg776215.privmethod(en-us,AX.60).gif isStdCurrency
Gg776215.pubmethod(en-us,AX.60).gif mcrBalanceCredit Returns the full on-credit balance.
Gg776215.pubmethod(en-us,AX.60).gif mcrBalanceCreditCard Calculates the unposted, non-prepay credit card balance.
Gg776215.pubmethod(en-us,AX.60).gif mcrDisplayMessage Sets whether or not the error message should be displayed directly from here.
Gg776215.pubmethod(en-us,AX.60).gif mcrGetErrorMessage Retuns the error message.
Gg776215.pubmethod(en-us,AX.60).gif new Sets default values and runs the init() method.
Gg776215.pubmethod(en-us,AX.60).gif notify Releases the hold on an object that has called the wait method on this object. (Inherited from Object.)
Gg776215.pubmethod(en-us,AX.60).gif notifyAll Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.)
Gg776215.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Gg776215.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Gg776215.pubmethod(en-us,AX.60).gif parmCheckAgreementLimit_RU Gets or sets the CheckAgreementLimit_RU parameter.
Gg776215.pubmethod(en-us,AX.60).gif rboTransactionBalance
Gg776215.pubmethod(en-us,AX.60).gif salesTotals Sets or gets an instance of SalesTotals used to calculate the total of the current sales order.
Gg776215.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Gg776215.pubmethod(en-us,AX.60).gif shouldCheckCreditAvailable Determines whether to check the available credit for the customer.
Gg776215.protmethod(en-us,AX.60).gif showErrorMsg Shows the error or warning message.
Gg776215.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
Gg776215.pubmethod(en-us,AX.60).gif typeOfCreditMaxCheck Gets or sets the type of credit maximum check.
Gg776215.pubmethod(en-us,AX.60).gif usageCount Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.)
Gg776215.pubmethod(en-us,AX.60).gif useEstimated Determines whether the estimated total field for sales orders for the current customer has been calculated.
Gg776215.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Gg776215.pubmethod(en-us,AX.60).gif warning Determines the type of message that is being shown.
Gg776215.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
Gg776215.pubmethod(en-us,AX.60).gif Gg776215.static(en-us,AX.60).gif ::construct Returns an instance of CustCreditLimit based on the parameter that is passed.
Gg776215.pubmethod(en-us,AX.60).gif Gg776215.static(en-us,AX.60).gif ::main Provides an entry point for the CustCreditLimit class when it is called from a menu item.
Top

static void example() 
{ 
    CustCreditLimit ccl = CustCreditLimit::construct(CustTable::find('4000')) 
    ; 
    // An error message is produced inside the scope of this method. 
 
    if (!ccl.check()) 
        throw error("Operation aborted."); 
}

Community Additions

ADD
Show: