Skip to content
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

Modify deutsche bank pdf importer #3548 #3551

Conversation

Nirus2000
Copy link
Member

No description provided.

buchen and others added 2 commits September 13, 2023 20:19
The latest account statements cannot be imported because the currency
was not detected. Apparently the latest document (can) introduce a line
break between account number and final balance.

With this change, the currency is retrieved from the header of the
document. However, to enable this we need to check for two lines.
@Nirus2000 Nirus2000 force-pushed the Modify-Deutsche-Bank-PDF-Importer-#3548 branch from 401e8b6 to 9e544a7 Compare September 14, 2023 05:11
@Nirus2000 Nirus2000 added the pdf label Sep 14, 2023
@Nirus2000 Nirus2000 requested a review from buchen September 14, 2023 05:19
@@ -442,15 +445,14 @@ private void addAccountStatementTransaction()
if (t.getCurrencyCode() != null && t.getAmount() == 0)
item.setFailureMessage(Messages.MsgErrorTransactionTypeNotSupported);

if (Boolean.valueOf(type.getCurrentContext().getBoolean("skipTransaction")))
Copy link
Member

Choose a reason for hiding this comment

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

#getBoolean already returns a boolean. No need to convert it to a boolean via "Boolean#valueOf"

Copy link
Member Author

Choose a reason for hiding this comment

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

i see it... i missing coffee in the morning. 🙈

buchen added a commit that referenced this pull request Sep 14, 2023
The latest account statements cannot be imported because the currency
was not detected. Apparently the latest document (can) introduce a line
break between account number and final balance.

With this change, the currency is retrieved from the header of the
document matching for the ISIN.

Issue: #3551 #3548
buchen pushed a commit that referenced this pull request Sep 14, 2023
Issue: #3551 #3548
Signed-off-by: Nirus2000 <[email protected]>
[moved change to currency matcher to separate commit; rebased to master]
Signed-off-by: Andreas Buchen <[email protected]>
@buchen
Copy link
Member

buchen commented Sep 14, 2023

merged

@buchen buchen closed this Sep 14, 2023
@Nirus2000 Nirus2000 deleted the Modify-Deutsche-Bank-PDF-Importer-#3548 branch September 14, 2023 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants