IEditSessionAddOrderCompoundItem(Guid, 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.EditorsAssembly: Resto.Front.Api.V9 (in Resto.Front.Api.V9.dll)
SyntaxINewOrderCompoundItemStub AddOrderCompoundItem(
Guid id,
IProduct product,
IOrderStub order,
IOrderGuestItemStub guest,
IProductSize size,
OrderItemCourse course = OrderItemCourse.Default
)
Parameters
- id Guid
- Unique identifier of the new order item modifier. MUST be unique not only for the order item or order, but for the whole system. Therefore it must be taken from some synchronization operation or generated with Guid.NewGuid().
- 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
See Also