Fsdss-281

---

### 📦 Release Notes - **FSDSS‑281** – Fixed crash when entering an invalid date on the Order creation page.

### 🔎 Reproduction Steps 1. Open `https://stg.example.com/orders` 2. Click **Create Order** 3. Fill form with **invalid date** (`2025‑02‑30`) 4. Submit → *Observe error* FSDSS-281

### đź’ˇ Fix - Added `validateDate` helper. - Updated `order.controller.ts` to call `validateDate` before parsing. - Added unit test `order.controller.spec.ts` for invalid dates.

### 🧩 Investigation - **Hypothesis:** Date‑parsing library throws on out‑of‑range values. - **Evidence:** `date-fns` `parseISO` throws `RangeError` (see log line 1123). - **Next step:** Add explicit validation before calling `parseISO`. --- ### 📦 Release Notes - **FSDSS‑281** –

### ✅ Verification - Ran `npm test` – all pass. - Deployed to Staging; reproduced steps now show UI validation message. - QA signed off on 2026‑04‑17.

### 🛠️ Environment - **Service / Module:** `backend‑order‑service` - **Env:** Staging - **OS / Browser:** macOS 13 / Chrome 116 - **Feature Flags:** `order_v2 = ON` Click **Create Order** 3

### 📂 Attachments - Screenshot of error (`error‑2026‑04‑17.png`) - Log snippet (`log‑20260417.txt`)