Skip to content

[FIX] runtime issue for next button#10

Merged
davidleomay merged 4 commits intodevelopfrom
fix/runtime-issue-for-next-button
Apr 12, 2023
Merged

[FIX] runtime issue for next button#10
davidleomay merged 4 commits intodevelopfrom
fix/runtime-issue-for-next-button

Conversation

@Krysh90
Copy link
Copy Markdown
Contributor

@Krysh90 Krysh90 commented Apr 12, 2023

No description provided.

@Krysh90 Krysh90 requested a review from davidleomay April 12, 2023 07:22
@davidleomay davidleomay merged commit 6cd1db3 into develop Apr 12, 2023
@davidleomay davidleomay deleted the fix/runtime-issue-for-next-button branch April 12, 2023 15:30
davidleomay added a commit that referenced this pull request Apr 12, 2023
[FIX] runtime issue for next button (#10)
TaprootFreak added a commit that referenced this pull request Apr 9, 2026
- Extract XML builder to src/util/camt053-builder.ts (#6)
- Add IBAN validation via Validations.Iban for both IBAN fields (#2)
- Escape bookingDate/valueDate/currency in XML output (#3)
- Add NaN guard for parseFloat on amount (#5)
- Use crypto.randomUUID() for AcctSvcrRef (#8)
- Change button label from "Next" to "Upload" (#10)
TaprootFreak added a commit that referenced this pull request Apr 10, 2026
* feat: add manual bank transaction entry page at /sepa/manuell

Add a form-based alternative to XML file upload for creating bank
transactions. The form generates a CAMT.053 XML and submits it via
the existing POST /bankTx endpoint. Admin-only access enforced via
useAdminGuard() on frontend and RoleGuard(BANKING_BOT) on API.

* refactor: improve XML builder readability and fix escapeXml crash

- Fix escapeXml crash on undefined values for optional address fields
- Extract escapeXml, buildPartyXml, buildCamt053Xml outside component
- Break long inline XML strings into readable multi-line structure
- Only emit address XML tags for fields that have values

* fix: remove unused iban parameter from buildPartyXml

* fix: align address fields with repo pattern and make bank data configurable

- Rename buildingNumber→houseNumber, postalCode→zip to match codebase
- Use StyledHorizontalStack for Street+Nr and ZIP+City rows
- Replace plain Country input with StyledSearchDropdown<Country>
- Add autocomplete attributes matching existing screens
- Replace hardcoded ACCOUNT_IBAN/OWNER/BANK with form fields
- Fix amount formatting to 2 decimal places
- Remove unused async from onSubmit

* fix: remove type=submit to prevent double form submission

* fix: address all review comments

- Extract XML builder to src/util/camt053-builder.ts (#6)
- Add IBAN validation via Validations.Iban for both IBAN fields (#2)
- Escape bookingDate/valueDate/currency in XML output (#3)
- Add NaN guard for parseFloat on amount (#5)
- Use crypto.randomUUID() for AcctSvcrRef (#8)
- Change button label from "Next" to "Upload" (#10)

* Fix navigation path for manual entry button

* Fix typo in route path from 'manuell' to 'manual'

---------

Co-authored-by: David May <85513542+davidleomay@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants