Powerstore uses the inventory field in the database and a stored timestamp for when the inventory was updated. Then it has an updated query in the catelog that will look at the number sold since the inventory was last updated and marks items out of stock accordingly.
It is a standard cart checkout process and all of the inventory control logic is done in the catelog.