[payments] force amount to be a Decimal
This commit is contained in:
parent
ab3b99cebf
commit
c1ed2ecfdb
|
@ -224,6 +224,7 @@ class PaymentWorkflowStatusItem(WorkflowStatusItem):
|
|||
vars = get_publisher().substitutions.get_context_variables()
|
||||
vars['Decimal'] = Decimal
|
||||
amount = eval(self.amount[1:], vars)
|
||||
amount = Decimal(amount)
|
||||
# XXX: catch and report the error somehow
|
||||
return amount
|
||||
|
||||
|
|
Reference in New Issue