Ability to Edit Stop List
v8
In Api V8, it has become possible to add a dish to the stop list in only one size or without specifying a size AddProductToStopList.
It is now possible to see that a dish in a certain size has been added to the stop list IsStopListProductSellingRestricted.
To get the entire list of the stop list, you now need to use the call GetStopListProductsRemainingAmounts, which returns a dictionary with the key of the instance ProductAndSize, containing the specific product IProduct and its size IProductSize.
To remove all items from the stop list, you need to use the function ClearStopList.
To remove a specific dish from the stop list, use RemoveProductFromStopList, where the product/dish must be specified, but the size is optional and can be null.
Setting the remaining amounts for a dish in the stop list SetStopListProductRemainingAmount - it is available to specify only values from 0.001 to 999.999, the size is optional and can be null.
The check for product sales restrictions has been renamed to CheckStopListProductsSellingRestrictions and now takes a dictionary where the key is ProductAndSize, and the value is still the quantity.
When attempting to use API calls, a user who does not have the rights to clear/remove/add/set the remaining amounts for stop lists (Edit stop list and quick menu F_EM) will throw an exception.
When trying to add a dish with a size to the stop list, it is always checked that the size for the dish can be applied according to its size scale; otherwise, an exception will be thrown.
To track changes in stop lists, the event has been renamed from ProductsRemainingAmountsChanged to StopListProductsRemainingAmountsChanged.