Fix x+1 error in order purchase

This commit is contained in:
nikolark committed 2015-11-04 21:56:58 +01:00
1 parent 0296617746
commit 8c004276a7
1 file changed
+1 -1
+1 -1
View File
@@ -67,7 +67,7 @@ def register(request):
if not order.is_external(): if not order.is_external():
profile = order.customer.get_profile() profile = order.customer.get_profile()
# can she afford it? # can she afford it?
if order_sum > profile.balance: if order_sum >= profile.balance:
messages.error(request, u'{0} {1} har ikke råd, mangler {2} kr.'.format( messages.error(request, u'{0} {1} har ikke råd, mangler {2} kr.'.format(
order.customer.first_name, order.customer.first_name,
order.customer.last_name, order.customer.last_name,