CustVendPaymProposalCalcPaym Class [AX 2012]

The CustVendPaymProposalCalcPaym class calculates payment dates and amounts for open customer or vendor transactions according to the payment proposal settings.

class CustVendPaymProposalCalcPaym

Run On

Called

  MethodDescription
Gg862541.pubmethod(en-us,AX.60).gif calc Runs the calculation of the payment date and amount.
Gg862541.protmethod(en-us,AX.60).gif calcCustPaymDate_IT
Gg862541.protmethod(en-us,AX.60).gif calcPaymCashDiscDate
Gg862541.protmethod(en-us,AX.60).gif calcPaymDate
Gg862541.protmethod(en-us,AX.60).gif calcPaymDate_IT
Gg862541.protmethod(en-us,AX.60).gif calcPaymDueDate
Gg862541.protmethod(en-us,AX.60).gif calcVendPaymDate_IT
Gg862541.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Gg862541.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Gg862541.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Gg862541.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Gg862541.protmethod(en-us,AX.60).gif new Initializes a new instance of the CustVendPaymProposalCalcPaym class.
Gg862541.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.)
Gg862541.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.)
Gg862541.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Gg862541.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Gg862541.pubmethod(en-us,AX.60).gif parmFromDate Gets or sets the FromDate parameter.
Gg862541.pubmethod(en-us,AX.60).gif parmLedgerJournalType Gets or sets the LedgerJournalType parameter.
Gg862541.pubmethod(en-us,AX.60).gif parmMinimumPaymDate Gets or sets the MinimumPaymDate parameter.
Gg862541.pubmethod(en-us,AX.60).gif parmPaymCurrency Gets or sets the PaymCurrency parameter.
Gg862541.pubmethod(en-us,AX.60).gif parmPaymDate_IT Gets or sets the PaymDate_IT parameter.
Gg862541.pubmethod(en-us,AX.60).gif parmPaymDateFixed Gets or sets the PaymDateFixed parameter.
Gg862541.pubmethod(en-us,AX.60).gif parmPaymDatePrinciple Gets or sets the PaymDatePrinciple parameter.
Gg862541.pubmethod(en-us,AX.60).gif parmPaymOnDateFixed_IT Gets or sets the PaymOnDateFixed_IT parameter.
Gg862541.pubmethod(en-us,AX.60).gif parmPaymWeekDayFixed Gets or sets the PaymWeekDayFixed parameter.
Gg862541.pubmethod(en-us,AX.60).gif parmPostingDateOption_IT Gets or sets the PostingDateOption_IT parameter.
Gg862541.pubmethod(en-us,AX.60).gif parmToDate Gets or sets the ToDate parameter.
Gg862541.pubmethod(en-us,AX.60).gif paymAmountInvoiceCur Returns the calculated payment amount in the currency of the invoice to pay.
Gg862541.pubmethod(en-us,AX.60).gif paymDate Returns the calculated payment date.
Gg862541.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Gg862541.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
Gg862541.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.)
Gg862541.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Gg862541.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
Gg862541.pubmethod(en-us,AX.60).gif Gg862541.static(en-us,AX.60).gif ::construct
Top

Principles for calculating the due date of an open transaction are different in different types of ledger journals. Therefore the class must be constructed with a ledger journal type.

The calculation is a two-step process:

  1. The actual due date or cash discount date is found.

  2. The actual date is adjusted to fit with parameters such as PaymDateFixed and PaymWeekDayFixed.

static void example() 
{ 
    CustVendPaymProposalCalcPaym    custVendPaymProposalCalcPaym; 
    VendTransOpen                   vendTransOpen; 
 
    select firstonly vendTransOpen;     // Find a random open transaction 
    custVendPaymProposalCalcPaym = 
        CustVendPaymProposalCalcPaym::construct(LedgerJournalType::Payment); 
    custVendPaymProposalCalcPaym.calc(vendTransOpen); 
    print custVendPaymProposalCalcPaym.paymDate(); 
    print custVendPaymProposalCalcPaym.paymAmountInvoiceCur(); 
    pause; 
}

Object Class
  CustVendPaymProposalCalcPaym Class

Community Additions

ADD
Show: