How accessallow/ecapp works
ECApp is a PHP/CodeIgniter ERP application. Users enter through the web interface and work with product and seller records, inventory purchases, bills, Form 49 records, shopping lists, stock warnings, and file attachments. In the sampled code, controllers handle requests and delegate to models; the shared controller also checks activation. The graph retains major capabilities evident in the repository tree, but many controller-to-model and persistence details were not excerpted, so uncertain links are omitted or marked unverified.
Main entry points: product_model.php Product data access · Inventory.php Inventory purchasing · ShoppingList.php Shopping lists · Product.php Product catalog
Components 18
Catalog and Suppliers
- Product catalog
application/controllers/Product.php - Product categories
application/controllers/Product_category.php - Seller records
application/controllers/Seller.php - Seller product mapping
application/controllers/Product_seller_mapping.php - Product data access
application/models/product_model.php
ERP Operations
- Inventory purchasing
application/controllers/Inventory.php - Payment bills
application/controllers/Bill.php - Form 49 records
application/controllers/Form49.php - Shopping lists
application/controllers/ShoppingList.php - Stock warnings
application/controllers/StockWarning.php - File attachments
application/controllers/FileUpload.php - Inventory data access
application/models/inventory_model.php - Shopping-list data access
application/models/shopping_list_model.php
Application Platform
- Product activation
application/controllers/Activation.php - Shared controller checks
application/core/MY_Controller.php - Configured database
application/config/database.php
Other components
- ERP user
- Web interface
Connections 17
- ERP user → Web interface: uses
- Web interface → Product catalog: opens default
- Web interface → Product catalog: navigates to
- Web interface → Inventory purchasing: navigates to
- Web interface → Form 49 records: navigates to
- Web interface → Payment bills: navigates to
- Web interface → Shopping lists: navigates to
- Web interface → Stock warnings: navigates to
- Inventory purchasing → Inventory data access: calls
application/controllers/Inventory.php - Inventory purchasing → Product data access: reads product
application/controllers/Inventory.php - Product catalog → Product data access: calls
application/controllers/Product.php - Shopping lists → Shopping-list data access: calls
application/controllers/ShoppingList.php - Shopping lists → Product data access: reads product
application/controllers/ShoppingList.php - Shared controller checks → Product activation: checks activation
application/core/MY_Controller.php - Product data access → Configured database: uses
- Inventory data access → Configured database: uses
- Shopping-list data access → Configured database: uses