Extract three additional modules following the billing module pattern: Inventory Module (app/modules/inventory/): - Stock management and tracking - Inventory locations - Low stock alerts - Admin and vendor routes with module access control Orders Module (app/modules/orders/): - Order management and fulfillment - Order item exceptions - Bulk operations and export - Admin and vendor routes with module access control Marketplace Module (app/modules/marketplace/): - Letzshop integration - Product sync - Marketplace import - Depends on inventory module - Admin and vendor routes with module access control Admin router updated: - Uses module routers with require_module_access dependency - Legacy router includes commented out - Routes verified: 15 inventory, 16 orders, 42 marketplace All 31 module tests passing. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
24 lines
519 B
Python
24 lines
519 B
Python
# app/modules/inventory/__init__.py
|
|
"""
|
|
Inventory Module - Stock and product management.
|
|
|
|
This module provides:
|
|
- Inventory tracking across locations
|
|
- Stock level management
|
|
- Low stock alerts
|
|
- Inventory transactions and history
|
|
- Product catalog management
|
|
|
|
Routes:
|
|
- Admin: /api/v1/admin/inventory/*
|
|
- Vendor: /api/v1/vendor/inventory/*
|
|
|
|
Menu Items:
|
|
- Admin: inventory, vendor-products
|
|
- Vendor: products, inventory
|
|
"""
|
|
|
|
from app.modules.inventory.definition import inventory_module
|
|
|
|
__all__ = ["inventory_module"]
|