METROPOLITAN CHEMIST POS v1.24
Based on v1.23 split-payment receipt package.

CHANGES
1. Expired Stock Removal: new branch-specific screen lists expired batches with remaining quantity, batch number, expiry date, unit cost and write-off value. Users can remove selected batches or all expired batches due in the active branch. Removal sets batch remaining quantity to zero, reduces branch_stock quantity, writes an expiry_writeoff stock movement and records an audit event. If batch quantities exceed the branch's recorded on-hand quantity, the transaction is stopped for reconciliation rather than allowing negative stock.
2. Branch Stock Value: dashboard stock value now sums only positive on-hand quantities multiplied by the product buying_price. Products with zero or negative stock are excluded. A product with even 1 unit is included at its buying price.
3. Self-service credentials: every logged-in user has My Account / Password & PIN. Users can change their own POS login PIN after confirming the current PIN; PIN uniqueness is checked. They may also change their password on the same page. The POS login screen currently authenticates using PIN, not password, so changing the PIN is what changes the credential used to sign in.
4. Retains v1.23 split-payment receipt display.

INSTALLATION
- Back up the live database and current application folder first.
- Extract the posxlsx_work folder and replace the existing application files (or deploy to a staging copy first).
- No new database tables or schema migration are required for these changes; they use existing stock_batches, branch_stock, stock_movements and audit_log tables.
- Sign in and confirm the Expired Stock Removal and My Account links appear for the relevant staff accounts.
- Test expired stock write-off on a staging copy before live use. This update was PHP syntax-checked and ZIP integrity-checked, but not tested against your live MySQL database or physical printers.
