# Changelog

## [Unreleased]

### Added

- Laravel 13 application foundation
- Livewire 4 and Tailwind CSS
- NGN integer-kobo money model
- versioned sensitive-field encryption
- keyed blind indexing
- readable secure access-key generation
- shared-login architecture
- scalable security-event architecture
- release packaging policy

### Sprint 2

- Added the responsive Express Cloud application shell.
- Added collapsible desktop and mobile navigation.
- Added reusable buttons, fields, cards, toasts, skeletons, modals, and drawers.
- Added custom common-error page foundations.
- Added a local-only interface preview.

### Sprint 3

- Added shared staff-selector and access-key authentication.
- Added encrypted access-key and blind-index foundations.
- Added account-session and security-event models.
- Added read-only profiles with profile-picture management.
- Activated secure logout and session inactivity controls.

### Sprint 4

- Added company, branch, role, permission, and audit-log foundations.
- Added granular permission middleware and branch-scoped account access.
- Added staff administration with role and branch assignment.
- Added session revocation and scalable active-session administration.

### Sprint 4

- Added company, branch, role, permission, and audit-log foundations.
- Added granular permission middleware and branch-scoped account access.
- Added staff administration with role and branch assignment.
- Added session revocation and scalable active-session administration.

### Sprint 4

- Added company, branch, role, permission, and audit-log foundations.
- Added granular permission middleware and branch-scoped account access.
- Added staff administration with role and branch assignment.
- Added session revocation and scalable active-session administration.

### Sprint 5

- Added product categories, brands, tax rates, suppliers, and products.
- Added tracked and untracked product behaviour.
- Added default and branch-specific pricing.
- Added encrypted supplier contact and tax fields.
- Added catalogue administration interfaces and permissions.

### Sprint 6

- Added Excel-only product import validation and processing.
- Added the downloadable sample Excel workbook.
- Added import preview, history, and downloadable error workbooks.
- Added transaction-safe product creation and update behavior.

### Sprint 7

- Added per-branch stock balances and minimum-stock thresholds.
- Added append-only stock movement ledger.
- Added stock intake, transfer, and adjustment workflows.
- Added milliunit quantity precision and negative-stock protection.

### Sprint 8

- Added purchase orders and supplier-linked goods receipt.
- Added partial and complete receiving states.
- Added automatic low-stock alert creation and resolution.
- Added low-stock reporting.

### Sprint 9

- Added customers, quick-add creation, search, credit limits, and balances.
- Added protected and custom payment methods.
- Added a single explicit default payment method for POS.

### Sprint 10

- Added unified invoice, quote, and POS sales engine.
- Added idempotent sale creation and line snapshots.
- Added transactional tracked-stock deduction.
- Added split and later payments.
- Added quote conversion and sales history.

### Sprint 11

- Added supplier bills and purchase invoices.
- Added partial and complete supplier bill payments.
- Added supplier supporting documents.
- Added supplier returns with stock-ledger movements.
- Added outstanding supplier-balance reporting.

### Sprint 12

- Removed all rejected accounting artifacts from the failed Sprint 12 attempt.
- Added the admin operations dashboard and attention-first metrics.
- Added in-app low-stock notifications.
- Added configurable alert recipients and business settings.
- Added idempotent end-of-day digest compilation and email delivery.
- Added staff-performance ranking and operational reporting.
- Added a secret-path HTTP cron endpoint for shared-hosting deployment.

### Sprint 13

- Added isolated thermal and A4 sale documents.
- Added server-side PDF generation and local embedded verification QR codes.
- Added product label printing.
- Added the unified reports hub and CSV exports.

### Sprint 14

- Added system-wide and product-specific activity views.
- Added live session inspection and force termination.
- Added structured production JSON error responses.
- Added targeted regression tests for known historical defects.

### Sprint 15

- Added customer credit and outstanding-balance workflows.
- Added creator-scoped sales visibility and payment audit logging.
- Added sale returns with stock-restoration movements.
- Added reusable discount vouchers and redemption logs.
- Added direct purchase recording for catalogue products.
- Added global sortable selects, animated toggles, choice cards, and back-button enhancement.

### Sprint 16

- Added quote-to-invoice and quote-to-POS conversion.
- Added hashed, scoped, expirable, and revocable API tokens.
- Added the versioned `/api/v1` operational API.
- Added public OpenAPI 3.1 documentation.

### Sprint 17

- Added native database backup creation and archive manifests.
- Added SHA-256 backup verification and retention pruning.
- Added backup administration and audit logging.
- Added the production health endpoint.
- Added production-readiness and recovery runbooks.

### Sprint 18

- Added standalone payment receipts without invoices or sales.
- Added purchase returns linked to received purchase lines.
- Added fixed-asset register and straight-line depreciation preview.
- Added editable company document branding and optional logo upload.
- Added PDF and spreadsheet exports for receipts, purchases, returns,
  stock operations, transfers, and assets.
- Added SHA-256 generation logs for downloaded operation documents.

### Sprint 19

- Added full double-entry accounting foundations and financial reports.
- Added historical sale cost snapshots and COGS posting.
- Added operational accounting synchronization and depreciation posting.
- Replaced the broken default seeder with production bootstrap seeding.
- Added reproducible MySQL SQL generation and vendor-inclusive release packaging.
- Added shared-hosting installation and release documentation.
