Navigation to order initiated by plugin
In API V8 we took the first step towards the ability to navigate between SyrvePOS screens at the initiative of a plugin. For now, only order navigation via plug-in buttons or from the order editing screen is supported.
In IViewManager
a new method has been added
NavigateToOrderAfterOperation
.
It can be called in the view manager, which comes to the plugin when you click the plugin buttons:
- on SUP - Supplements —
AddButtonToPluginsMenu
- on the closed order screen —
AddButtonToClosedOrderScreen
- on the order return screen for closed cash register shifts —
AddButtonToProductsReturnScreen
- on the order editing screen —
AddButtonToOrderEditScreen
And also in the view manager, which comes to the plugin when editing from the API the current order opened at the SyrvePOS:
- calling inside
TryEditCurrentOrder
Navigation is only possible in an open order. When calling the method, the corresponding rights of the currently logged in employee at the SyrvePOS are checked. The same ones that are checked when navigating by pressing the buttons on the front itself. Navigation to delivery order is not yet possible.