PurchFormletterParmDataInvoice.insertVendInvoiceMatchingLine Method [AX 2012]

Creates a record in the VendInvoiceMatchingLine table from either a PurchLine record or a previously saved VendInvoiceMatchingLine record.

protected void insertVendInvoiceMatchingLine(
    VendDocumentLineMap _activeVendInvoiceInfoLine, 
    PurchLineRefRecId _purchLineRecId, 
   [PurchLine _purchLine, 
    NoYes _varianceApproved, 
    VendInvoiceInfoLine _srcVendInvoiceInfoLine])

Run On

Server

Parameters

_activeVendInvoiceInfoLine
Type: VendDocumentLineMap Map
A VendInvoiceInfoLine record with which the new VendInvoiceMatchingLine record will be associated.
_purchLineRecId
Type: PurchLineRefRecId Extended Data Type
The RecId value of the PurchLine record where the expected values will be found.
_purchLine
Type: PurchLine Table
The PurchLine record where the expected values will be found.
_varianceApproved
Type: NoYes Enumeration
The NoYes::Yes enumeration value if the invoice has been approved to post with variances; otherwise, the NoYes::No enumeration value.
_srcVendInvoiceInfoLine
Type: VendInvoiceInfoLine Table
A record in the VendInvoiceInfoLine table where the expected values will be found when a pending invoice is retrieved.

This method should only be used to attach a VendInvoiceMatchingLine record to an active VendInvoiceInfoLine record.

Community Additions

ADD
Show: