Require CMND/CCCD on transaction creation and enforce amount range 1M-20M
Sổ Bán Lẻ rejects customer creation with a 422 ("Vui lòng nhập số
CMND/CCCD") when id_card_number is null - discovered via manual E2E
testing against the real service. Add a required customerIdCard field to
the admin form and controller, persisted on AdminTransaction, and pass
through as customer_data.id_card_number instead of null.
Also add the requested amount validation: payment amount must be
strictly greater than 1,000,000 and less than 20,000,000, enforced both
client-side (form) and server-side (createTransaction).
Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017KPzWwuTEeX2vXGXvyGn4q
Showing
Please
register
or
sign in
to comment