-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
[14.0][FIX] account_statement_import_txt_xlsx: empty balance_column field #703
base: 14.0
Are you sure you want to change the base?
Conversation
Hi @alexey-pelykh, |
518f194
to
44db952
Compare
Backport of #693 |
@@ -61,7 +62,9 @@ def parse(self, data_file, mapping, filename): | |||
lines = self._parse_lines(mapping, data_file, currency_code) | |||
if not lines: | |||
return currency_code, account_number, [{"transactions": []}] | |||
|
|||
if not isinstance(lines[0]["timestamp"], datetime): |
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.
How this is related to empty balance column?
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 @alexey-pelykh , this line was necessary, because some banks' statements put the first line without a date, containing only the description and the previous balance, so the solution I found was to copy the date of the next line. But I'm open to suggestions, thanks for the review.
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.
This should be done as a separate PR. Backport is a backport, sneaky changes aren't good :)
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.
I understand. I will provide a new PR and fix this one.
44db952
to
50fbb8e
Compare
This change addresses the error obtained when the column cell
amount_column
is empty.