Commit graph

4 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