Inventory management with loans