CustVendOpenTransManager.setPrimaryPayment Method [AX 2012]
Sets the class variables that are used to track a marked primary payment.
Syntax
protected void setPrimaryPayment(
CompanyId _company,
CurrencyCode _currency,
ExchRate _exchRate,
TransDate _transDate,
DiscGraceDays _discGraceDays)
Run On
Called
Parameters
- _company
Type: CompanyId Extended Data Type
The company of the primary payment.
- _currency
Type: CurrencyCode Extended Data Type
The currency of the primary payment.
- _exchRate
Type: ExchRate Extended Data Type
The exchange rate of the primary payment that is used to translate from the currency of the payment to the monetary standard (MST) currency.
- _transDate
Type: TransDate Extended Data Type
The posting date of the primary payment.
- _discGraceDays
Type: DiscGraceDays Extended Data Type
The number of grace days for the discount that is associated with the primary payment.
Remarks
When a primary payment is marked, the display currency is set to the currency of the primary payment and the date used to determine cash discounts is set to the posting date of the primary payment.