PurchTotalsSummaryController::calculateAndUpdateTotalsSummary Method [AX 2012]

Calculates or gets the totals for the purchase order and inserts the data in the PurchTotalsSummary table.

server public static boolean calculateAndUpdateTotalsSummary(
    PurchTable _purchTable, 
   [PurchTotalsSummary _purchTotalsSummary, 
    PurchTotals _purchTotals])

Run On

Server

Parameters

_purchTable
Type: PurchTable Table
PurchTable record buffer for which to update the totals.
_purchTotalsSummary
Type: PurchTotalsSummary Table
PurchTotalsSummary record buffer that needs to be updated; optional.
_purchTotals
Type: PurchTotals Class
PurchTotals object that carries the totals values calculated; optional.

Return Value

Type: boolean
true - indiating that the PurchTotalsSummary record was updated.
Show: