Share via


AgreementLine::getAgreementLinesForOrderLine Method

Retrieves the list of the agreement lines that match to the sales or purchase line.

Syntax

server public static container getAgreementLinesForOrderLine(
    SalesPurchLine _salesPurchLine, 
    AgreementHeaderRecId _matchingAgreement, 
   [boolean _getAll])

Run On

Server

Parameters

  • _salesPurchLine
    Type: SalesPurchLine Map
    The sales or purchase line for which to find the agreement lines.
  • _getAll
    Type: boolean
    A Boolean value that indicates whether to retrieve all agreement lines that match; optional.

Return Value

Type: container
The list of the found agreement lines packed into the container.

Remarks

If the _getAll parameter is false, the optimization will be done. The agreement lines will not be added to the list if they have lower priority than the lines already added to the list. The item based agreement lines have more priority than the category based agreement lines.

If the _getAll parameter is set to true, all agreement lines that are found will be added to the list.

See Also

Reference

AgreementLine Table