Fixed a TypeError introduced in 1f28585

This commit is contained in:
Raphael Michel
2015-09-29 16:18:18 +02:00
parent 3282244d1b
commit 8b2787b9c0

View File

@@ -47,7 +47,7 @@ class BasePaymentProvider:
"""
fee_abs = self.settings.get('_fee_abs', as_type=Decimal, default=0)
fee_percent = self.settings.get('_fee_percent', as_type=Decimal, default=0)
return (price * fee_percent / 100).quantize('.01') + fee_abs
return (price * fee_percent / 100).quantize(Decimal('.01')) + fee_abs
@property
def verbose_name(self) -> str: