py3: update payment UI (#47090)

This commit is contained in:
Frédéric Péters 2020-09-28 14:27:09 +02:00
parent 9de8c79c5a
commit 534d8a489a
1 changed files with 1 additions and 1 deletions

View File

@ -347,7 +347,7 @@ class RegieDirectory(Directory):
def monetary_amount(self, val):
if not val:
return ''
if isinstance(val, basestring):
if isinstance(val, str):
val = val.replace(',', '.')
return '%.2f' % decimal.Decimal(val)