Bakery POS Phase 7 Validation
=============================

Baseline source:
- Exact user-supplied Phase 6 ZIP: bakery(3).zip
- Latest user-supplied DB export: engrgolk_bakery(3).sql

Static validation completed:
- PHP syntax: PASS (59 PHP files checked with php -l)
- JavaScript syntax: PASS (6 asset JS files + service-worker.js checked with node --check)
- Baseline preservation: PASS (0 baseline files missing from integrated tree)
- Static base_url target check: PASS (0 missing static targets)
- config/database.php: unchanged
- login.php: unchanged
- two-factor.php: unchanged
- app/Services/EmailOtp.php: unchanged
- master costing summaries: PASS
- master allocations: PASS
- master cost extensions: PASS
- seed pricing defaults: PASS
- migration costing summaries: PASS
- migration allocations: PASS

Current real-data arithmetic check from supplied SQL export:
- Completed production batch 2 issues/return imply actual raw-material cost ~= Rs. 5,255.21
- For 75 good units, raw-material-only unit cost ~= Rs. 70.069445 before manufacturing/distribution overheads

Existing files intentionally modified for Phase 7:
- README.md
- app/Services/ProductRecipeService.php
- app/Support/layout.php
- assets/css/app.css
- bakery/index.php
- bakery/production-view.php
- bakery/products.php
- config/app.php
- docs/FILE_STRUCTURE.md
- service-worker.js
- sql/001_master_schema.sql
- sql/002_seed_core.sql

New files added for Phase 7:
- app/Services/CostingPricingService.php
- assets/js/phase7.js
- bakery/cost-categories.php
- bakery/costing-view.php
- bakery/costing.php
- bakery/price-history.php
- bakery/pricing-settings.php
- bakery/pricing.php
- sql/008_phase7_costing_pricing.sql

Notes:
- No live connection to the hosting database was made from this environment.
- Migration 008 was validated structurally/staticly and must be imported once on the hosting MariaDB database before testing the new pages.
- Back up the live application and database before migration/deployment.
