When sales of cartons and individual items are sold via separate codes, the restocking of the individual code can be automated and re-costed. The application can be scheduled to run manually or at set times to re-stock and re-cost items that have been put in stock. The example shows a carton of radios that have been bought, 5 radios per carton. The application would remove the carton from stock and put 5 radios into stock.