-
-
Notifications
You must be signed in to change notification settings - Fork 614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix pending transaction amount sign and payee name for National Bank of Greece import #448
Conversation
WalkthroughThe changes introduce a new bank integration for the National Bank of Greece (NBG) by adding a new bank entity and its corresponding module. The module includes methods for normalizing account and transaction data and calculating starting balances. Additionally, a test suite is created to validate the normalization logic. A bug fix is also included to ensure accurate representation of transaction amounts and payee names during the import process. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant App
participant NbgEthngraaxxx
User->>App: Initiate bank transaction
App->>NbgEthngraaxxx: Normalize account data
NbgEthngraaxxx-->>App: Return normalized account
App->>NbgEthngraaxxx: Normalize transaction data
NbgEthngraaxxx-->>App: Return normalized transaction
App-->>User: Display transaction details
Poem
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (4)
Additional context usedLanguageTool
Additional comments not posted (8)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
The pending purchases retrieved from National Bank of Greece are erroneously sent as positive, and have a static unnecessary prefix ("ΑΓΟΡΑ") added to the remittance information, causing them to be added as deposits, and preventing the eventual booked transactions from being properly matched.
This fix adds the minus sign and removes the prefix for the problematic pending transactions.
Summary by CodeRabbit
New Features
Bug Fixes
Tests