Share via


SalesLine.createAlternativeItem Method

Replaces the current item with an alternative item if an alternative item has been set up.

Syntax

public boolean createAlternativeItem(InventDim _inventDim, SalesLine _newlyCreatedSalesLine)

Run On

Called

Parameters

  • _newlyCreatedSalesLine
    Type: SalesLine Table
    A buffer of the SalesLine table.

Return Value

Type: boolean
false if the current item has a alternative item setup; otherwise, true.

Remarks

The user will be prompted for permission to use the alternative item.

See Also

Reference

SalesLine Table