Commit graph

8 commits

Author SHA1 Message Date
Mavis
346a60cf97 feat(payments): relax batch_ref regex to allow spaces, slashes, dots, colons, etc.
The previous rule ^[A-Za-z0-9_-]{1,50}$ rejected common bank/POP
references that include punctuation [e.g. 'Bank ref 26/09/18',
'INV/2026.09:18 #3', 'POP 12345']. New rule permits letters, digits,
space, underscore, hyphen, slash, dot, comma, colon, parens,
ampersand, hash, apostrophe, plus; length 1-100. Still rejects
characters that break filesystems/URLs [e.g. < > " ? * | \ ;].

Files updated:
- app/api/payments/create/route.ts   [inline regex + new error msg]
- app/api/payments/[id]/edit/route.ts [BATCH_REF_PATTERN + new error msg]
- app/unpaid/UnpaidClient.tsx        [HTML pattern attribute]
- app/remittance/RemittanceClient.tsx [HTML pattern attribute]
- docs/superpowers/plans/2026-09-18-jei-payments-and-remittance.md [plan doc]
2026-09-19 01:13:15 +02:00
Ysterbaard
9faad5878f fix(plan): drop ,-created from remittance sort (PB v0.39.8 lacks created column on base tables) 2026-09-18 19:53:09 +02:00
Ysterbaard
b13e4c38ab fix(plan): correct off-by-one in getPb import path for [id]/* routes 2026-09-18 19:08:28 +02:00
Ysterbaard
9e0ec2c6a5 Add 2026-09-18 Payments & Remittance implementation plan 2026-09-18 18:13:10 +02:00
Ysterbaard
a8bacb8eb5 Add 2026-09-18 Payments & Remittance design spec 2026-09-18 18:08:19 +02:00
Mavis
f1f28ba13a spec: clarify acceptance #4 wording 2026-09-17 21:32:20 +02:00
Mavis
3cce09db23 spec: revise with PDF discoveries + deliver-to + document_type; add NOTES.md and .gitignore 2026-09-17 21:32:05 +02:00
Mavis
14eee3fb9a spec: JEI invoice tracker design (2026-09-17) 2026-09-17 21:19:22 +02:00