 It should be calculated in realtime by the MES.The supermarket itself can be regarded as a derogation from the principles of lean production, especially from those of the "One Piece Flow" concept, because it represents work in progress, WIP, which is not yet assigned to a specific production order being executed or which has been already released for production.The stock in the supermarket is already issued to the shop floor stock.