How mrayanghosh/grocery-billing-system works
The Grocery Billing System supports an admin workflow: log in, maintain product stock, build a multi-item bill, deduct purchased quantities, and print an invoice. Stock management and billing query the shared MySQL product catalog through the PHP connection; billing calculations also run in the browser, while invoice data passes through PHP session state to the print page. The README documents responsive styling and these major capabilities. Evidence is limited to the README and sampled source; edges reflect only relationships visible there.
Main entry points: billing.php Bill submission · stock.php Stock management · index.php Login · print_bill.php Printable invoice
Components 12
Product Inventory
- Stock management
stock.php - Product catalog
- MySQL connection
db.php
Billing Workflow
- Bill submission
billing.php - Dynamic bill rows
billing.js
Invoice and UI
- Printable invoice
print_bill.php - Responsive styling
style.css
Other components
- Shop admin
- Admin browser
Connections 20
- Shop admin → Login: enters credentials
index.php - Login → PHP session state: sets login state
index.php - Login → Stock management: redirects on success
index.php - Stock management → PHP session state: checks login state
stock.php - Stock management → MySQL connection: includes connection
stock.php - Stock management → Product catalog: reads and writes products
stock.php - Bill submission → PHP session state: checks login state
billing.php - Bill submission → MySQL connection: includes connection
billing.php - Bill submission → Product catalog: reads products and updates stock
billing.php - Bill submission → Dynamic bill rows: loads calculations
billing.php - Dynamic bill rows → Admin browser: updates displayed totals
billing.js - Bill submission → PHP session state: stores bill data
billing.php - Bill submission → Printable invoice: redirects after billing
billing.php - Printable invoice → PHP session state: reads and clears bill data
print_bill.php - Shop admin → Stock management: manages inventory
README.md - Shop admin → Bill submission: creates customer bill
README.md - Shop admin → Printable invoice: prints bill
print_bill.php - Logout → PHP session state: destroys session
logout.php - Logout → Login: redirects after logout
logout.php - Admin browser → Responsive styling: loads page styles