# CHECKLABS Inventory & Branch Stock Update

## Changes
1. Stock transfer now lets an authorized user choose both the source branch and destination branch.
2. Source and destination stock locations are filtered to the selected branches.
3. Both branch IDs and both store IDs are validated server-side against the user's assigned active branches.
4. Products and ingredients assigned to both selected branches can be transferred. Transfer stock is deducted from the source location and added to the destination location through StockService.
5. Transfer history now identifies the branch and stock location and shows signed movement quantities.
6. Stock adjustment now supports both increase and decrease for the Adjustment movement type, validates the product's branch assignment, and rejects products not configured for stock tracking.
7. Stock takes now include branch-assigned stock-controlled products even when no stock row exists yet (starting at zero).
8. Stock take completion checks that every item has a count, locks the draft take during reconciliation, and applies all variance movements in a database transaction.

## Validation performed
- PHP syntax check passed for all 225 PHP files under app, routes, and database.
- ZIP integrity check passed.
- Laravel automated tests and Blade view compilation could not be completed in this environment because the PHP runtime lacks the mbstring extension (`mb_split()` is undefined). No live database/browser test was performed.

## Deployment
Back up the live application, upload/replace the project files, then run:
`php artisan optimize:clear`

No new database migration is included for these changes.
