Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the list of agreement lines that match the specified vendor invoice line.
Syntax
server public static container getAgreementLinesForVendInvoiceLine(
SalesPurchLine _salesPurchLine,
AgreementHeaderRecId _matchingAgreement,
[boolean _getAll])
Run On
Server
Parameters
- _salesPurchLine
Type: SalesPurchLine Map
- _matchingAgreement
Type: AgreementHeaderRecId Extended Data Type
The record identifier (ID) for the agreement header.
- _getAll
Type: boolean
A Boolean value that indicates whether to retrieve all agreement lines that match the specified vendor invoice line; optional.
Return Value
Type: container
The list of agreement lines that match the specified vendor invoice line.
Remarks
If the _getAll parameter is set to false, the optimization will be performed. The agreement lines will not be added to the list if they have a lower priority than the lines that are already in the list. Item-based agreement lines have a higher priority than category-based agreement lines. If the _getAll parameter is set to true, all agreement lines that match the specified vendor invoice line will be added to the list.