Commit 54308b1f authored by Phyks (Lucas Verney)'s avatar Phyks (Lucas Verney)
Browse files

Fixes

parent 546f28b0
Pipeline #34612 passed with stages
in 6 minutes and 23 seconds
......@@ -475,6 +475,28 @@ class Connector(object):
# Handle upcoming transactions
for line in backend.iter_coming(account):
# Handle date
if line.rdate:
# Use date of the payment (real date) if available.
date = line.rdate
elif line.date:
# Otherwise, use debit date, on the bank statement.
date = line.date
else:
logging.error(
'No known date property in operation line: %s.',
unicode(line.raw)
)
date = datetime.now()
isodate = date.isoformat()
debit_date = line.date.isoformat()
if line.label:
title = unicode(line.label)
else:
title = unicode(line.raw)
results.append({
'account': account.id,
'amount': unicode(line.amount),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment