include platform fee in bid list so it's clearly shown before sale
parent
efa639acff
commit
9a4d2781c8
@ -0,0 +1,11 @@
|
|||||||
|
from math import ceil
|
||||||
|
from django import template
|
||||||
|
from django.conf import settings
|
||||||
|
|
||||||
|
|
||||||
|
register = template.Library()
|
||||||
|
|
||||||
|
@register.filter(is_safe=True)
|
||||||
|
def determine_platform_fee(value):
|
||||||
|
platform_fee_xmr = float(value * (settings.PLATFORM_FEE_PERCENT / 100))
|
||||||
|
return round(platform_fee_xmr, 4)
|
Reference in New Issue