CustVendPaymProposalCalcPaym Class [AX 2012]
The CustVendPaymProposalCalcPaym class calculates payment dates and amounts for open customer or vendor transactions according to the payment proposal settings.
| Method | Description | |
|---|---|---|
| calc | Runs the calculation of the payment date and amount. |
| calcCustPaymDate_IT | |
| calcPaymCashDiscDate | |
| calcPaymDate | |
| calcPaymDate_IT | |
| calcPaymDueDate | |
| calcVendPaymDate_IT | |
| cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) |
| equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) |
| getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) |
| handle | Retrieves the handle of the class of the object. (Inherited from Object.) |
| new | Initializes a new instance of the CustVendPaymProposalCalcPaym class. |
| notify | Releases the hold on an object that has called the wait method on this object. (Inherited from Object.) |
| notifyAll | Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.) |
| objectOnServer | Determines whether the object is on a server. (Inherited from Object.) |
| owner | Returns the instance that owns the object. (Inherited from Object.) |
| parmFromDate | Gets or sets the FromDate parameter. |
| parmLedgerJournalType | Gets or sets the LedgerJournalType parameter. |
| parmMinimumPaymDate | Gets or sets the MinimumPaymDate parameter. |
| parmPaymCurrency | Gets or sets the PaymCurrency parameter. |
| parmPaymDate_IT | Gets or sets the PaymDate_IT parameter. |
| parmPaymDateFixed | Gets or sets the PaymDateFixed parameter. |
| parmPaymDatePrinciple | Gets or sets the PaymDatePrinciple parameter. |
| parmPaymOnDateFixed_IT | Gets or sets the PaymOnDateFixed_IT parameter. |
| parmPaymWeekDayFixed | Gets or sets the PaymWeekDayFixed parameter. |
| parmPostingDateOption_IT | Gets or sets the PostingDateOption_IT parameter. |
| parmToDate | Gets or sets the ToDate parameter. |
| paymAmountInvoiceCur | Returns the calculated payment amount in the currency of the invoice to pay. |
| paymDate | Returns the calculated payment date. |
| setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) |
| toString | Returns a string that represents the current object. (Inherited from Object.) |
| usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.) |
| wait | Pauses a process. (Inherited from Object.) |
| xml | Returns an XML string that represents the current object. (Inherited from Object.) |
| ::construct |
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:
-
The actual due date or cash discount date is found.
-
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;
}
Community Additions
ADD
Show: