What normally happens is that availability is a boolean yes/no, and gets set to no when the first person asks for something that's run out. The merchant then sets it back to yes after stock comes in. That's a lot less work than integration ERP systems, and achieves the same result with the collateral damage to a few customers' experiences.