SAFE RESOURCES LTD - V10 INSTALLATION
=====================================

IMPORTANT
---------
This upgrade does not include config.php and does not change your database login.
It does not delete guards, posts, attendance history, or old salary records.

STEP 1 - BACK UP
----------------
In cPanel File Manager, compress the current security_management_system folder.
In phpMyAdmin, export citytec_safe_resources before continuing.

STEP 2 - IMPORT THE DATABASE UPDATE FIRST
-----------------------------------------
1. Open phpMyAdmin.
2. Select citytec_safe_resources.
3. Click Import.
4. Choose database/update_v10_attendance_payroll.sql from this package.
5. Click Go and confirm it succeeds.

STEP 3 - UPLOAD THE FILES
-------------------------
Extract this ZIP into:

/home/citytec/public_html/saferesourcesltd.citytec.co.tz/security_management_system/

Choose overwrite/replace when cPanel asks. The ZIP already contains the correct
public, includes, and database folders. Do not extract it into the public folder.

STEP 4 - TEST
-------------
1. Sign in and open Roster Management.
2. Confirm group numbers 1 through 14 appear.
3. Confirm the red x beside a guard opens the removal reason window.
4. Open Attendance, select a month, and click a blank daily box four times:
   green Present, red Absent, yellow Permission, then blank.
5. Open Finance > Salaries / Payroll and save one guard's row.

PAYROLL FORMULA
---------------
Net = (Basic salary / calendar days in selected month x Present days)
      + Allowances - Deductions.

Present days come directly from Monthly Attendance. Status choices are Pending,
Paid, and Not Paid.
