Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
1.2 KiB
1.2 KiB
Why
Company codes are stored and shown in lowercase (ins, cv). The owner wants them in capitals (INS, CV), and the Companies screen cannot change cv to CV: the portal treats a case-only change as no change, and services-system lowercases every code it saves.
What Changes
- Company codes are stored and shown in capitals: 2 to 20 characters of
A-Z,0-9and-. Any code entered is turned to capitals before it is checked and saved. - Sign-in keeps ignoring case: staff can type
cv,CvorCV. - Staff login names follow the code (
sales9@CV). - A one-off SQL turns the existing codes and staff login names to capitals.
Capabilities
New Capabilities
None.
Modified Capabilities
company-scoping: the code format of the Companies requirement becomes capitals.
Impact
- services-system:
CompanyServicecode validation and normalisation. - mobile-api: the admin login builds the login name with the code in capitals.
- portal: the Companies code fields show and send capitals. A case-only rename is no longer treated as no change.
- Data:
sql/01-uppercase-codes.sqlonservice-system. Signed-in staff must sign in again after it runs, as after any code change.