How snowdondigital/priceplanner works
PricePlan is a PHP product-pricing planner: users maintain product cost and pricing inputs, calculate suggested and realized prices and margins, and use those records in product lists or client-specific price lists. The wider application also supports role-based access, CSV import/export, audit history, configurable pricing defaults and groups, and administrator-managed updates. The graph follows documented capabilities and sampled call sites; several unsampled page implementations are represented by their exact paths, with uncertain internal wiring omitted.
Main entry points: product.php Product pages · products.php Product records · pricelist.php Price-list editor · index.php Application entry
Components 22
Product planning
- Product pages
public/product.php - Product catalogue
public/products.php - Product records
app/products.php - Pricing calculations
app/pricing.php - Dashboard
public/dashboard.php - CSV import
public/import.php - Product export
public/export.php
Price lists
- Price-list management
public/pricelists.php - Price-list editor
public/pricelist.php - Price-list rules
app/pricelists.php - Price-list export
public/pricelist_export.php
Access and administration
- Authentication and roles
app/auth.php - Pricing settings and groups
public/settings.php - User administration
public/users.php - Audit history
public/audit.php - Audit recording
app/audit.php - Update management
public/updates.php - Release installation
app/updates.php
Application services
- Application entry
public/index.php - MariaDB / MySQL
Other components
- User
- GitHub releases
Connections 25
- User → Application entry: opens app
- Application entry → Authentication and roles: checks session
- Application entry → Dashboard: redirects
- Product pages → Authentication and roles: checks access
- Product pages → Product records: saves product
- Product pages → Pricing calculations: calculates prices
- Product records → Pricing calculations: uses calculations
- Product records → Audit recording: records changes
- Product pages → MariaDB / MySQL: reads and writes
- Product catalogue → MariaDB / MySQL: queries products
- CSV import → MariaDB / MySQL: creates records
- Product export → MariaDB / MySQL: reads products
- Price-list management → Price-list editor: opens lists
- Price-list editor → Price-list rules: uses list logic
- Price-list editor → MariaDB / MySQL: reads products
- Price-list rules → Pricing calculations: calculates line prices
- Price-list export → Price-list rules: formats list values
- Price-list export → MariaDB / MySQL: reads list data
- Pricing settings and groups → MariaDB / MySQL: stores defaults
- User administration → MariaDB / MySQL: manages accounts
- Authentication and roles → MariaDB / MySQL: loads accounts
- Audit history → MariaDB / MySQL: reads history
- Audit recording → MariaDB / MySQL: writes history
- Update management → Release installation: installs release
- Release installation → GitHub releases: fetches releases