IOperationServiceTryEditCurrentOrder Method |
Allows to show messages and make changes to the order that is currently opened on the order edit screen.
Namespace:
Resto.Front.Api
Assembly:
Resto.Front.Api.V9 (in Resto.Front.Api.V9.dll)
Syntax void TryEditCurrentOrder(
Action<(IOrder order, IOperationService os, IViewManager vm)> callback
)
Parameters
- callback
- Type: SystemActionValueTupleIOrder, IOperationService, IViewManager
Callback that can show messages and make changes to the order using the view manager and special instance of operation service.
Exceptions Exception | Condition |
---|
NotSupportedException | Current screen doesn't support this operation. |
OperationCanceledException | Current screen has canceled the operation. It means that the current screen was unable to execute the operation immediately and therefore scheduled it for executing later, but then navigation to another screen has happened in a way that prevented calling delayed operations before changing the screen. |
Exception | Any exception thrown by callback. |
Remarks
The callback will be called immediately if the are no uninterruptable activity by user or another plugin, otherwise this method will wait until the screen becomes idle. Delivery order editor currently doesn't support changes from API.
See Also