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.
  • _markedPayment
    Type: NoYes Enumeration
    The indicator that the marked transaction is the primary payment; optional.

Return Value

Type: container
A container that contains the inserted spec trans.

Remarks

Replaces the Specification.create method.

See Also

Reference

SpecTransManager Class