Allow exact purchases
This commit is contained in:
1 parent
de85988039
commit
ff72b8dd0b
1 file changed
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user