Last-in, first-out LIFO method in a periodic inventory system