Cloud based stock control system