boobank: never convert a float to decimal
Signed-off-by: Pierre Mazière <pierre.maziere@gmail.com>
This commit is contained in:
parent
681f6c0bec
commit
8d13282dab
1 changed files with 1 additions and 1 deletions
|
|
@ -108,7 +108,7 @@ class AccountListFormatter(IFormatter):
|
||||||
|
|
||||||
result = (u' %s%-' + (u'15' if alias is not None else '30') + u's%s %-25s %8s %8s') % \
|
result = (u' %s%-' + (u'15' if alias is not None else '30') + u's%s %-25s %8s %8s') % \
|
||||||
(self.BOLD, id, self.NC,
|
(self.BOLD, id, self.NC,
|
||||||
obj.label, '%.2f' % obj.balance, '%.2f' % (obj.coming or Decimal(0.0)))
|
obj.label, '%.2f' % obj.balance, '%.2f' % (obj.coming or Decimal(0)))
|
||||||
|
|
||||||
self.tot_balance += obj.balance
|
self.tot_balance += obj.balance
|
||||||
if obj.coming:
|
if obj.coming:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue