Support for Extending Executed SyrveFront Operations at Specific Points
Tags:
The V4 API has added the ability to subscribe to the execution of certain operations for their extension. When these operations are executed, SyrveFront stops at pre-agreed points and hands control over to a plugin, which can edit data (including that on which the operation is being performed), interact with the user by showing dialog boxes, perform printing tasks, etc., depending on the operation.
Currently, the following points are available:
- opening and closing the cash shift (printing can be performed);
- printing pre-checks, cash receipts (markup can be returned for insertion into specific places in the printed document);
- order cancellation (currently only the notification itself and read access to the canceled order are available);
- transitioning to the payment screen (changes can be made to the order that the user is about to pay for).
In the future, new similar points may be added. There will be a separate article on working in the context of executed SyrveFront operations (TODO).