Added unit test for bank CSV import

This commit is contained in:
Raphael Michel
2015-09-08 20:51:02 +02:00
parent 912b0fcf6a
commit c921ad9fd7
3 changed files with 107 additions and 1 deletions

View File

@@ -195,6 +195,7 @@ class ImportView(EventPermissionRequiredMixin, TemplateView):
match = pattern.search(row['reference'].upper())
try:
amount = Decimal(amount_pattern.sub("", row['amount'].replace(",", ".")))
row['amount'] = str(amount)
except:
logger.exception('Could not parse amount of transaction')
amount = 0