# Phase 7: Unified Order Workstation

## Objective

Deliver one operational order desk that can compose a single invoice from all supported orderable types.

---

## Tasks

### 7.1 Customer selection and context

- Fast customer search/select.
- Show contextual financial info before order creation.

### 7.2 Universal item picker

- Support all current orderables.
- Type-aware metadata forms (date/time/coach/department/quantity/custom amount).
- Department assignment on order lines where required.

### 7.3 Recap and totals

- Mixed line support (taxable and tax-exempt in one invoice).
- VAT/tax summaries and subtotal/total clarity.
- Validation and constraint feedback before checkout.

### 7.4 Save/edit order draft

- Draft lifecycle for waiting payment orders.
- Safe item updates/removals and recalculation.

---

## File Impact (Expected)

- `app/Filament/V2/Pages/Orders/*`
- `app/Actions/AdminV2/Orders/*`
- possible extension hooks around `UpsertOrderAction`

---

## Acceptance Criteria

- One invoice can combine heterogeneous items from multiple orderable domains.
- Calculations are accurate for mixed tax behavior.
- Existing orderable constraints are preserved.

---

## Tests

- Mixed-orderable composition tests.
- Tax/totals recalculation tests.
- Constraint failure handling tests.
