Allow exact purchases

This commit is contained in:
nikolark committed 2015-11-25 20:31:21 +01:00
1 parent de85988039
commit ff72b8dd0b
1 file changed
+1 -1
+1 -1
View File
@@ -48,7 +48,7 @@ def register(request):
if not order.is_external():
profile = order.customer.profile
# can she afford it?
if order_sum >= profile.balance:
if profile.balance < order_sum:
messages.error(request, '{0} {1} har ikke råd, mangler {2} kr.'.format(
order.customer.first_name,
order.customer.last_name,