More Information on Orders from Closed Cash Shifts

Tags: v8preview7 v8

In the API V8Preview7, information has been added about whether the order has been deleted, storned, information about which order the current one was storned from, as well as a list of orders that belong to the same group as the current order.

Thus, to understand whether the current order has ever been storned, you need to check its property Storned, if it is false, then additionally check if there are any grouped orders referencing the current one through the property SourceOrderInfo:

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

When attempting to return (StornoPastOrder) an already storned order, SyrveFront will check the new right CAN_STORN_CLOSED_ORDERS_AGAIN ("F_STRNA", "Repeat return of an order from a closed cash shift").