Creates a new CStandardOrderLine for the order and appends it to the end of the OrderLines array.

Namespace: Asi.iBO.Commerce
Assembly: Asi.iBO (in Asi.iBO.dll) Version: 15.1.3.0

Syntax

C#
public CStandardOrderLine NewLineItem(
	CStandardProduct product,
	double quantity
)
Visual Basic
Public Function NewLineItem ( _
	product As CStandardProduct, _
	quantity As Double _
) As CStandardOrderLine
Visual C++
public:
CStandardOrderLine^ NewLineItem(
	CStandardProduct^ product, 
	double quantity
)

Parameters

product
Type: Asi.iBO.Commerce..::..CStandardProduct
The product being added to the order.
quantity
Type: System..::..Double
The quantity of the product being added to the order.

Return Value

The new CStandardOrderLine object that has been added to the order.

Remarks

If the SourceSystem is set to "ORDER" and the SourceCode is set to "WEB" (as they are by default) and the SellOnWeb for the product parameter is false, an error is generated.

Exceptions

ExceptionCondition
System..::..ArgumentNullException is thrown if the product is null.

See Also