# Vault ILS Complete v1

Standalone PHP/PDO/MySQL asset, bin, location, movement, audit, reservation and inventory tracking app.

## Install

1. Upload the folder to your server.
2. Set the web root to `public/`.
3. Copy `config/config.example.php` to `config/config.php` and edit database credentials and Fusion API key.
4. Import `database/install.sql`.
5. Login with:
   - Email: `admin@example.com`
   - Password: `admin123`
6. Change the admin password immediately in the database or add a user management screen later.

## Fusion / Arkwright API

Send header:

`X-Fusion-Key: your-configured-key`

Endpoints:

- `GET /api/v1/health`
- `GET /api/v1/assets`
- `GET /api/v1/assets?q=printer`
- `GET /api/v1/assets/{asset_code}`
- `GET /api/v1/locations`
- `GET /api/v1/locations/{location_code}`
- `GET /api/v1/inventory`
- `GET /api/v1/assets/status/missing`
- `POST /api/v1/assets/move`

Move payload:

```json
{
  "asset_code": "AST-000001",
  "location_code": "LOC-000004",
  "notes": "Moved by Arkwright"
}
```

## What is complete in this v1

- Session login
- Assets with QR/barcode payloads
- Locations and hierarchical bins/storage
- Movement timeline
- Manual scan/lookup workflow
- Printable asset/location labels
- Inventory/consumable SKU tracking
- Reservations
- Audit starter/log
- Fusion-readable API endpoints
- Mobile-first UI

## Notes

The label system currently prints QR payload text rather than rendered QR images. It is QR-ready: connect a JS QR library, server-side QR generator, or label printer template if you want scannable graphical QR codes directly on labels.
