- New PurchaseOrder.paymentDate field (migration 20260531000002) - Backfill: existing POs use paidAt, else the earliest payment action date - Accounts must enter a payment date with the payment reference - Date input pre-selected to today, max=today (no future dates) - Validated server-side (required + not in future) in processPaymentSchema - paymentDate stored on both full and partial payments; paidAt set from it - Shown on PO detail (Payment Date) and payment history (prefers paymentDate) - Integration tests updated; added future-date rejection test Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| po.ts | ||
| user.ts | ||