Real-time inventory software working together with the website solves this problem. Oh, one more thing, you need a competent person managing the software.