Follow-up on migration

This commit is contained in:
Matthieu Dietrich
2016-04-27 10:49:20 +02:00
parent 3adb27ef0e
commit 0698aed426
14 changed files with 102 additions and 45 deletions

View File

@@ -35,7 +35,6 @@ class GenericFileParser(FileParser):
def __init__(self, parse_name, ftype='csv', **kwargs):
conversion_dict = {
'ref': ustr,
'label': ustr,
'date': datetime.datetime,
'amount': float_or_zero,
@@ -64,10 +63,9 @@ class GenericFileParser(FileParser):
line, it MUST contain at least:
{
'name':value,
'date':value,
'amount':value,
'ref':value,
'label':value,
'date_maturity':value,
'credit':value,
'debit':value
}
"""
amount = line.get('amount', 0.0)