Click or drag to resize

IEditSessionAddSecondaryComponent Method (IProduct, IOrderStub, IOrderCompoundItemStub, NullableDecimal)

Adds a secondary component to the compound item.

Namespace:  Resto.Front.Api.V5.Editors
Assembly:  Resto.Front.Api.V5 (in Resto.Front.Api.V5.dll)
Syntax
C#
INewOrderCompoundItemComponentStub AddSecondaryComponent(
	IProduct product,
	IOrderStub order,
	IOrderCompoundItemStub compoundItem,
	decimal? predefinedPrice = null
)

Parameters

product
Type: Resto.Front.Api.V5.Data.AssortmentIProduct
Assortment position. Must exist in iikoFront assortment.
order
Type: Resto.Front.Api.V5.Editors.StubsIOrderStub
Order to which position will be added.
compoundItem
Type: Resto.Front.Api.V5.Editors.StubsIOrderCompoundItemStub
Compound item to which new component will be added.
predefinedPrice (Optional)
Type: SystemNullableDecimal
Predefined fixed price of the component, allows to use external quotation instead of default price list. null means default price.

Return Value

Type: INewOrderCompoundItemComponentStub
See Also