IOperationServiceChangeKitchenOrderItemsProcessingStatus(Guid, IReadOnlyListIKitchenOrderCookingItem, IReadOnlyListIKitchenOrderModifierItem, KitchenOrderItemProcessingStatus) Method |
Changes cooking status of the specified cooking items and modifiers.
Namespace: Resto.Front.ApiAssembly: Resto.Front.Api.V10 (in Resto.Front.Api.V10.dll)
Syntaxbool ChangeKitchenOrderItemsProcessingStatus(
Guid kitchenOrderId,
IReadOnlyList<IKitchenOrderCookingItem> cookingItems,
IReadOnlyList<IKitchenOrderModifierItem> separateModifiers,
KitchenOrderItemProcessingStatus newStatus
)
Parameters
- kitchenOrderId Guid
-
Id of kitchen order which contains the specified cooking items and modifiers.
- cookingItems IReadOnlyListIKitchenOrderCookingItem
-
Cooking items.
- separateModifiers IReadOnlyListIKitchenOrderModifierItem
-
Modifiers which are cooked separately from their products. Use IsSeparate to check whether the modifier is cooked separately.
- newStatus KitchenOrderItemProcessingStatus
-
New processing status to be set for all specified cooking items and modifiers.
Return Value
Boolean
Whether the operation was successful. Kitchen orders use optimistic locking model, so someone could apply conflicting changes to the same cooking items and modifiers just before this method call, in that case plugin should re-read the kitchen order, re-check conditions and call this method again if it still makes sense.
See Also