Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion csf_za/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.3.0"
__version__ = "0.3.1"
4 changes: 4 additions & 0 deletions csf_za/overrides/accounts/bank_statement_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ def parse_csv_file_bankzero(self, file_doc):
"Balance",
"Has Attachments",
]
# remove UTF-8 BOM from first header cell if present
if data and data[0] and isinstance(data[0][0], str):
data[0][0] = data[0][0].lstrip("\ufeff")

if data[0][:9] != expected_headers[:9]:
frappe.throw(
_("Unexpected headers in CSV. Expected: {0} in first row").format(
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "csf_za",
"version": "0.3.0",
"version": "0.3.1",
"author": "Starktail (Pty) Ltd <support@starktail.com>",
"main": "index.js",
"devDependencies": {
Expand Down