SpecTransManager.insertSpec Method [AX 2012]
Creates the SpecTrans record with the SpecCompany, SpecTableId, and SpecRecId fields shared by this instance of the SpecTransManager class.
Syntax
public SpecTrans insertSpec(
SpecTrans _insertSpecTrans,
CompanyId _refCompany,
TableId _refTableId,
RefRecId _refRecId,
Amount _balance,
CurrencyCode _currency,
[NoYes _markedPayment,
CashDiscAmount _discAmountToTake,
TransDate _selectedDateUsedToCalcCashDisc])
Run On
Called
Parameters
- _insertSpecTrans
Type: SpecTrans Table
The reference table ID of the SpecTrans record to be inserted.
- _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.
- _balance
Type: Amount Extended Data Type
The amount that have been paid for the transaction.
- _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: CashDiscAmount 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.
Return Value
Type: SpecTrans Table
A record of the SpecTrans table.