For decades, the retail industry has faced the same persistent problems of empty shelves, pricing errors and inventory discrepancies.