[amazonstorecard] Show only posted transactions. Closes #1749
This commit is contained in:
parent
40d44c32fd
commit
a1eea6a098
1 changed files with 5 additions and 1 deletions
|
|
@ -82,9 +82,13 @@ class RecentPage(XMLPage):
|
|||
'TRANSDESCRIPTION/text()')[0].split())
|
||||
tdate = u''.join(ntrans.xpath('TRANSACTIONDATE/text()'))
|
||||
pdate = u''.join(ntrans.xpath('POSTDATE/text()'))
|
||||
# Skip transactions which are not posted,
|
||||
# because they are not accounted for in balance calculation.
|
||||
if not pdate:
|
||||
continue
|
||||
t = Transaction()
|
||||
t.date = datetime.strptime(tdate, '%m/%d/%Y')
|
||||
t.rdate = datetime.strptime(pdate or tdate, '%m/%d/%Y')
|
||||
t.rdate = datetime.strptime(pdate, '%m/%d/%Y')
|
||||
t.type = Transaction.TYPE_UNKNOWN
|
||||
t.raw = desc
|
||||
t.label = desc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue