display the 'N' entry only when available
This commit is contained in:
parent
c450ffde06
commit
51f8efc41d
2 changed files with 3 additions and 2 deletions
|
|
@ -42,8 +42,9 @@ class QifFormatter(IFormatter):
|
|||
result += u'!type:Bank\n'
|
||||
result += u'D%s\n' % item['date'].strftime('%d/%m/%y')
|
||||
result += u'T%s\n' % item['amount']
|
||||
if item['category']:
|
||||
result += u'N%s\n' % item['category']
|
||||
result += u'M%s\n' % item['label']
|
||||
result += u'N%s\n' % item['category']
|
||||
result += u'^\n'
|
||||
self.count += 1
|
||||
return result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue