Turn a person without an account into an account (Stufe 27) #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ollo2012/stufe-27-konto-umwandeln"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Stufe 27 from PLANUNG.md.
Unit tests (367) and e2e (96) pass locally.
🤖 Generated with Claude Code
In admin mode the page of a person without an account offers "In Konto umwandeln": username, start password, optional e-mail and the admin right, then a confirmation. The new account keeps name and colour (the note is dropped, the form says so) and must change its password at first login. Bookings for the person, her expenses, Kasse, repayments and group membership move to the account in one transaction; each moved booking, expense and repayment gets a "transfer" history entry ("an <Name> übertragen"). The person stays for the history (migration 0011 adds internal_person.converted_user_id) but is hidden from lists and choices; her page redirects to the account. createUser is split so the checks and hashing can run before the transaction (newUserValues). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>