Warehouses — Production Guide
Licensing and rollout
- Catalog:
warehouses, categoryinventory(Inventory, category sort50) - Free Marketplace opt-in; not default-included; module sort
20 - Permissions:
warehouses.view|create|update|delete|restore|force.delete - Use additive migrations for catalog and role permission rollout.
Deploy checklist
- Migrate
warehouses,warehouse_notes, andwarehouse_activities. - Register Warehouses and grant missing default-role permissions.
- Deploy the tenant UI.
- Smoke: enable Warehouses, create a location, verify the default
MAINwarehouse is created when needed, and confirm that the sole default warehouse cannot be deleted.
Operational notes
ensureDefaultWarehouse() keeps stock posting operational for Inventory and Purchase Order receipt when a warehouse is omitted. Do not remove active default warehouse data outside application services; stock level and movement foreign keys restrict destructive removal.