ignore canceled transactions
This commit is contained in:
parent
e1e4213c75
commit
ed46d72f21
1 changed files with 2 additions and 2 deletions
|
|
@ -184,8 +184,8 @@ class SubmitPage(BasePage):
|
||||||
raise ValueError('CSV fields count of %i is not supported' % len(csv.header))
|
raise ValueError('CSV fields count of %i is not supported' % len(csv.header))
|
||||||
|
|
||||||
for row in csv.rows:
|
for row in csv.rows:
|
||||||
# we filter accounts by currency
|
# we filter accounts by currency and ignore canceled transactions
|
||||||
if account.get_currency(row[CURRENCY]) != account.currency:
|
if account.get_currency(row[CURRENCY]) != account.currency or row[NET] == '...':
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# analog to dict.get()
|
# analog to dict.get()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue