how does restaurant inventory work