They do it real-time, and when they do a physical audit, they compare their real-time with the actual physical count.
With controlled substances, this is done real time, as another pharmacist has to go behind the first, recount, and verify shelf stock...
How does a pharmacy do inventory when inventory time comes around?