Inventory SW Base code