Click or drag to resize

IOperationServiceChangeKitchenOrderItemsProcessingStatus Method

Changes cooking status of the specified cooking items and modifiers.

Namespace:  Resto.Front.Api
Assembly:  Resto.Front.Api.V7 (in Resto.Front.Api.V7.dll)
Syntax
C#
bool ChangeKitchenOrderItemsProcessingStatus(
	IKitchenOrder order,
	IReadOnlyList<IKitchenOrderCookingItem> cookingItems,
	IReadOnlyList<IKitchenOrderModifierItem> separateModifiers,
	KitchenOrderItemProcessingStatus newStatus
)

Parameters

order
Type: Resto.Front.Api.Data.KitchenIKitchenOrder
Order which contains the specified cooking items and modifiers.
cookingItems
Type: System.Collections.GenericIReadOnlyListIKitchenOrderCookingItem
Cooking items.
separateModifiers
Type: System.Collections.GenericIReadOnlyListIKitchenOrderModifierItem
Modifiers which are cooked separately from their products. Use IsSeparate to check whether the modifier is cooked separately.
newStatus
Type: Resto.Front.Api.Data.KitchenKitchenOrderItemProcessingStatus
New processing status to be set for all specified cooking items and modifiers.

Return Value

Type: 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