PurchTotals::newParmTable Method [AX 2012]

Creates a new object of the PurchTotals class that calculates the totals from a VendInvoiceInfoTable or PurchParmTable record.

NoteNote

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.


  Microsoft Dynamics AX 2012 R3
          server public static PurchTotals newParmTable(
            VendDocumentTableMap _parmTable, 
            PurchUpdate _specQty, 
            AccountOrder _sumBy, 
            ParmId _parmId, 
            PurchId _sumPurchId, 
           [DocumentStatus _documentStatus, 
            PurchTotalsCachingMethod _cachingMethod])

  Microsoft Dynamics AX 2012 R2 (SYS)
          server public static PurchTotals newParmTable(
            VendDocumentTableMap _parmTable, 
            PurchUpdate _specQty, 
            AccountOrder _sumBy, 
            ParmId _parmId, 
            PurchId _sumPurchId, 
           [DocumentStatus _documentStatus, 
            PurchTotalsCachingMethod _cachingMethod])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          server public static PurchTotals newParmTable(
            VendDocumentTableMap _parmTable, 
            PurchUpdate _specQty, 
            AccountOrder _sumBy, 
            ParmId _parmId, 
            PurchId _sumPurchId, 
           [DocumentStatus _documentStatus, 
            boolean _shareInstances])

  Microsoft Dynamics AX 2012 (FPK)
          server public static PurchTotals newParmTable(
            VendDocumentTableMap _parmTable, 
            PurchUpdate _specQty, 
            AccountOrder _sumBy, 
            ParmId _parmId, 
            PurchId _sumPurchId, 
           [DocumentStatus _documentStatus, 
            boolean _shareInstances])

  Microsoft Dynamics AX 2012 (SYS)
          server public static PurchTotals newParmTable(
            VendDocumentTableMap _parmTable, 
            PurchUpdate _specQty, 
            AccountOrder _sumBy, 
            ParmId _parmId, 
            PurchId _sumPurchId, 
           [DocumentStatus _documentStatus, 
            boolean _shareInstances])

Run On

Server

Parameters

_parmTable
Type: VendDocumentTableMap Map
A VendInvoiceInfoTable or PurchParmTable record.
_specQty
Type: PurchUpdate Enumeration
Indicates which quantity to use.
_sumBy
Type: AccountOrder Enumeration
Indicates how the VendInvoiceInfoSubTable or PurchParmSubTable records are summarized.
_parmId
Type: ParmId Extended Data Type
A session identifier.
_sumPurchId
Type: PurchId Extended Data Type
The purchase order identifier of the summary VendInvoiceInfoTable or PurchParmTable record.
_documentStatus
Type: DocumentStatus Enumeration
The document type; optional.
_cachingMethod
Type: PurchTotalsCachingMethod Enumeration
An Enum value that specifies whether to use new or existing cached instances of the PurchTotals class within a transactional scope.

Return Value

Type: PurchTotals Class
An object of the PurchTotals_ParmTransEdit class.

ExceptionCondition
Error

The _parmId parameter was blank.

The _parmId parameter is used to calculate the tax for the totals in the PurchCalcTax class.

In older versions boolean parameter _shareInstances was used. It has been replaced with _cachingMethod enum parameter.

Show: