SpecTransManager.insert Method [AX 2012]
Creates the SpecTrans record with the SpecCompany, SpecTableId, and SpecRecId fields shared by this instance of the SpecTransManager class.
Syntax
public void insert(
CompanyId _refCompany,
TableId _refTableId,
RefRecId _refRecId,
Amount _settleAmount,
CurrencyCode _currency,
[NoYes _markedPayment,
AmountCur _discAmountToTake,
TransDate _selectedDateUsedToCalcCashDisc])
Run On
Called
Parameters
- _refCompany
Type: CompanyId Extended Data Type
The reference company of the SpecTrans record to be inserted.
- _refTableId
Type: TableId Extended Data Type
The reference table ID of the SpecTrans record to be inserted.
- _refRecId
Type: RefRecId Extended Data Type
The reference record ID of the SpecTrans record to be inserted.
- _settleAmount
Type: Amount Extended Data Type
The settlement amount of the marked transaction to be settled.
- _currency
Type: CurrencyCode Extended Data Type
The currency of the marked transaction.
- _markedPayment
Type: NoYes Enumeration
The indicator that the marked transaction is the primary payment; optional.
- _discAmountToTake
Type: AmountCur Extended Data Type
The cash discount amount of the marked transaction to be settled; optional.
- _selectedDateUsedToCalcCashDisc
Type: TransDate Extended Data Type
The payment date for the calculation of cash discount to be settled.
Remarks
Replaces the create method on the Specification class.