SpecTransManager::insertServer Method [AX 2012]
Creates a SpecTrans record with the SpecCompany, SpecTableId, and SpecRecId fields shared by the instance of the SpecTransManager class.
Syntax
server private static container insertServer(
container _specTransManagerPack,
CompanyId _specCompany,
TableId _specTableId,
RefRecId _specRecId,
CompanyId _refCompany,
TableId _refTableId,
RefRecId _refRecId,
Amount _settleAmount,
CurrencyCode _currency,
[NoYes _markedPayment,
AmountCur _discAmountToTake,
TransDate _selectedDateUsedToCalcCashDisc])
Run On
Server
Parameters
- _specTransManagerPack
Type: container
A packed instance of the SpecTransManager class.
- _specCompany
Type: CompanyId Extended Data Type
The spec company of the SpecTrans record to be inserted.
- _specTableId
Type: TableId Extended Data Type
The spec table ID of the SpecTrans record to be inserted.
- _specRecId
Type: RefRecId Extended Data Type
The spec record 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.
- _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.
Return Value
Type: container
A container that contains the inserted spec trans.
Remarks
Replaces the Specification.create method.