Skip to content

14 restructure054#37

Merged
ecino merged 3 commits into
CompassionCH:14.0-allfrom
davidwul:14-restructure054
Apr 29, 2026
Merged

14 restructure054#37
ecino merged 3 commits into
CompassionCH:14.0-allfrom
davidwul:14-restructure054

Conversation

@davidwul
Copy link
Copy Markdown

refactor to add the camt054 case.
the production is on this branch, (to change when it's merged)

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the CAMT bank statement parser to simplify logic, improve foreign currency handling, and consolidate transaction processing. Key changes include a more robust parse_amount_details_currency method and streamlined narration generation. Feedback focuses on preventing potential TypeError or ValueError exceptions when parsing XML nodes with missing text or namespaces, and addressing a logic flaw where batch transaction amounts could be incorrectly duplicated.

Comment thread account_statement_import_camt/models/parser.py Outdated
Comment thread account_statement_import_camt/models/parser.py Outdated
Comment thread account_statement_import_camt/models/parser.py Outdated
Comment thread account_statement_import_camt/models/parser.py Outdated
Comment thread account_statement_import_camt/models/parser.py
Comment thread account_statement_import_camt/models/parser.py Outdated
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@ecino ecino merged commit 1d0f653 into CompassionCH:14.0-all Apr 29, 2026
1 of 4 checks passed
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