flush print total only when there are accounts in queue
This commit is contained in:
parent
13aa381335
commit
6c2dfef837
1 changed files with 3 additions and 0 deletions
|
|
@ -70,6 +70,9 @@ class AccountListFormatter(IFormatter):
|
||||||
|
|
||||||
|
|
||||||
def flush(self):
|
def flush(self):
|
||||||
|
if count < 1:
|
||||||
|
return
|
||||||
|
|
||||||
result = u'------------------------------------------%s+----------+----------\n' % (('-' * 15) if not self.interactive else '')
|
result = u'------------------------------------------%s+----------+----------\n' % (('-' * 15) if not self.interactive else '')
|
||||||
result +=u'%s Total %8s %8s' % ((' ' * 15) if not self.interactive else '',
|
result +=u'%s Total %8s %8s' % ((' ' * 15) if not self.interactive else '',
|
||||||
'%.2f' % self.tot_balance, '%.2f' % self.tot_coming)
|
'%.2f' % self.tot_balance, '%.2f' % self.tot_coming)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue