╔═══════════════════════════════════════════════════════════════════════════╗ ║ INVENTORY STOCKS DEMO DATA - QUICKSTART ║ ╚═══════════════════════════════════════════════════════════════════════════╝ 📦 What Was Created: ✓ 100 Products (beverages, snacks, dairy, alcohol, cosmetics, household) ✓ 5 Warehouse Locations (Main, Bulk, Shop, Liquor, Cosmetic) ✓ 7 Product Categories ✓ 250+ Inventory Records ✓ 100+ Product Batches with expiry dates ✓ Multiple unit types (PIECE, CARTON, BOX) ✓ Realistic price ranges and stock levels �� Deploy Now (Choose One): Quick Deploy: $ ./deploy_inventory_demo_data.sh Manual Deploy: $ psql -U postgres -d tafdb -f sql/demo_data_inventory_stocks.sql Docker Deploy: $ docker exec -i taf-postgres psql -U postgres -d tafdb < sql/demo_data_inventory_stocks.sql 📊 View the Data: 1. Open: http://localhost/TAF/FrontEnd/Dashboard.php 2. Click: "Inventory Management" 3. Navigate to: "Stocks" tab 4. See: 250+ inventory records with products, quantities, locations 📚 Documentation: Quick Reference: INVENTORY_DEMO_DATA_SUMMARY.md Full Documentation: sql/README_INVENTORY_DEMO_DATA.md Visual Overview: INVENTORY_STOCKS_VISUAL.txt SQL Script: sql/demo_data_inventory_stocks.sql (34 KB) �� Sample SQL Queries: # Count products SELECT pc.name, COUNT(*) FROM products p JOIN product_categories pc ON p.category_id = pc.category_id GROUP BY pc.name; # Low stock alerts SELECT p.name, b.name, i.current_qty FROM inventory i JOIN product_batch_numbers pbn ON i.product_batch_number_id = pbn.product_batch_number_id JOIN products p ON pbn.product_id = p.product_id JOIN branches b ON i.branch_id = b.branch_id WHERE i.current_qty < 20; # Total inventory value SELECT b.name, SUM(i.current_qty * p.unit_price) as value FROM inventory i JOIN product_batch_numbers pbn ON i.product_batch_number_id = pbn.product_batch_number_id JOIN products p ON pbn.product_id = p.product_id JOIN branches b ON i.branch_id = b.branch_id GROUP BY b.name; ✨ Features Demonstrated: ✅ Multi-location inventory ✅ Product categorization ✅ Batch tracking with expiry ✅ Multiple unit types ✅ Price & cost tracking ✅ VAT/Tax rates ✅ Low stock alerts ✅ Parent-child warehouses 📞 Need Help? - Check INVENTORY_DEMO_DATA_SUMMARY.md for quick tips - Read sql/README_INVENTORY_DEMO_DATA.md for full details - Review AGENTS.md for architecture info ═══════════════════════════════════════════════════════════════════════════ Ready to see 250+ stock records in action! �� ═══════════════════════════════════════════════════════════════════════════