-
Notifications
You must be signed in to change notification settings - Fork 704
adds ingoing, outgoing transfer and mark interest bookings in AccountStatements as NonImportable #4214
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
adds ingoing, outgoing transfer and mark interest bookings in AccountStatements as NonImportable #4214
Conversation
marks german interest payments in account statement as nonimportable
t.setDateTime(asDate(v.get("date"))); | ||
t.setAmount(asAmount(v.get("amount"))); | ||
t.setCurrencyCode(asCurrencyCode(v.get("currency"))); | ||
v.getTransactionContext().put(FAILURE, Messages.MsgErrorTransactionTypeNotSupported); |
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.
Hello @christen90
Thank you for this pull request.
Unfortunately I don't see a test for this change (FAILURE), why this line is added.
Can you add a test case that makes this change plausible?
Regards
Alex
…Format01 modifying test cases to check for error messages
assertThat(results, hasItem(interest(hasDate("2023-04-01"), hasAmount("EUR", 0.01), // | ||
hasSource("Kontoauszug05.txt"), hasNote(null)))); | ||
assertThat(results, hasItem(withFailureMessage( // | ||
Messages.MsgErrorTransactionTypeNotSupported, // |
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.
Hello @christen90
I understand the reason (interests), but we should issue a different message here, which could possibly also be used for other PDF importers.
I could imagine the following message:
MsgErrorTransactionAlternativeDocumentRequired = "Die Buchung wird mit diesem Dokument nicht verarbeitet. Ihre Bank oder Ihr Broker stellt ein anderes Dokument dafür zur Verfügung."
MsgErrorTransactionAlternativeDocumentRequired = "This document does not process the booking. Your bank or broker will provide a different document for this purpose."
Please change the error message and add the missing translations via deepl.com.
It is also better if you adjust the title of the pull request to make it easier to understand later.
Regards
Alex 😃
- UTF8 upload error in translation file - Add some source - Fix test case as similare german transaction
Hi together,
this PR adds incoming, outgoing transfer
It also marks german interest payments in account statement as nonimportable
reason: tax amount is not included in account statements. interest transactions can be imported via specific document.
In my case there were two bookings (Geldmarkt Dividende and Cash Zinsen) in Abrechnung-Zinsen-document.
Importing both (Kontoauszug and Abrechnung Zinsen) was causing that Booking gets imported twice. Once the seperate dividend and interest with the exact amount of tax and the other one from account statement including just the sum. Resulting in a wrong saldo at the end.
BR Christian