PurchTotals_ParmTrans.calcCustVendMarkupOnLine Method [AX 2012]

Calculates the value of the MarkupTrans table records with a CustVend markup type that are attached to a PurchParmLine table record.

protected AmountCur calcCustVendMarkupOnLine(
    Markup _markup, 
    PurchLine _purchLine, 
    PurchQty _purchQty, 
    AmountCur _lineAmount, 
    Common _source)

Run On

Server

Parameters

_markup
Type: Markup Class
A record in the MarkupTrans table.
_purchLine
Type: PurchLine Table
The PurchLine table record that is associated with the _source parameter.
_purchQty
Type: PurchQty Extended Data Type
The invoice line quantity.
_lineAmount
Type: AmountCur Extended Data Type
The invoice line amount.
_source
Type: Common Table
The source of the MarkupTrans table record.

Return Value

Type: AmountCur Extended Data Type
The sum of the CustVend markup type miscellaneous charges for the specified line.

The _source parameter is regularly a record in the PurchParmLine or VendInvoiceInfoLine table.

Community Additions

ADD
Show: