Click or drag to resize

IEditSessionAddOrderCompoundItem(IProduct, IOrderStub, IOrderGuestItemStub, IProductSize, OrderItemCourse) Method

Adds compound item to the guest in existing order. User must have permission to edit orders.

Namespace: Resto.Front.Api.Editors
Assembly: Resto.Front.Api.V9 (in Resto.Front.Api.V9.dll)
Syntax
C#
INewOrderCompoundItemStub AddOrderCompoundItem(
	IProduct product,
	IOrderStub order,
	IOrderGuestItemStub guest,
	IProductSize size,
	OrderItemCourse course = OrderItemCourse.Default
)

Parameters

product  IProduct
Assortment position used to fix modifiers. Must exist in Syrve POS assortment.
order  IOrderStub
Order to which position will be added.
guest  IOrderGuestItemStub
Guest to which position will be added.
size  IProductSize
Size of the order item if it's template has scale, otherwise null.
course  OrderItemCourse  (Optional)
Cooking and serving priority of the order item.

Return Value

INewOrderCompoundItemStub
Remarks
Compound item should have at least one component, so AddPrimaryComponent(IProduct, IOrderStub, IOrderCompoundItemStub, NullableDecimal) should be called after adding a compound item.
See Also