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 sales or purchase line.
Syntax
server public static container getAgreementLinesForPurchLine(
SalesPurchLine _salesPurchLine,
AgreementHeaderRecId _matchingAgreement,
[boolean _getAll])
Run On
Server
Parameters
- _salesPurchLine
Type: SalesPurchLine Map
The sales or purchase line for which you want to find the agreement lines.
- _matchingAgreement
Type: AgreementHeaderRecId Extended Data Type
The record identifier (ID) of the agreement header.
- _getAll
Type: boolean
A Boolean value that indicates whether to retrieve all the agreement lines that match the specified sales or purchase line; optional.
Return Value
Type: container
The list of agreement lines that match the specified sales or purchase 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 are found will be added to the list.