Syrve POS API SDK

More information in orders of closed cash register shifts

[ ]

The V8Preview7 API has added information about whether the current order was deleted or reversed, information about which order the current order was reversed from, as well as a list of orders that are included in the same group as the current order.

Thus, to understand whether the current order has been canceled at least once, you need to check its property Storned, if it is equal to false, then you additionally need to check whether there are any among the grouped orders that refer to the current one through the property SourceOrderInfo:

if (pastOrder.Storned || pastOrder.GroupPastOrders.Any(o => o.SourceOrderInfo?.OrderId == pastOrder.OrderId)
    // This order has already been cancelled.

When trying to return again (StornoPastOrder) already canceled order Syrve POS will check the new right CAN_STORN_CLOSED_ORDERS_AGAIN ("F_STRNA", "Repeated return of an order from a closed cash register shift").