Editing an Order Before Checkout
Tags:
Starting from API V7Preview5, it became possible to edit an order directly before checkout.
Before the order is transferred to checkout, a notification is triggered
BeforeOrderBill.
Previously, it allowed canceling the transfer of the order to the status
Bill
by generating an OperationCanceledException in the corresponding subscriber.
It also allowed interaction with the user (when possible) through
IViewManager,
showing various windows in SyrveFront.
Now, in addition to everything else, the ability to change the order through
IOperationService has been added,
which has become available in the notification arguments.
Thus, before finalizing the cost, you can edit the composition of dishes or discounts in the order.