No need for intermediate error reporting

This commit is contained in:
Ludovic Stephan 2017-04-01 08:47:09 -03:00
parent ccf5f80685
commit 271654b447

View file

@ -1018,7 +1018,6 @@ def kpsul_perform_operations(request):
else:
if operationgroup.on_acc.is_cash:
data['errors']['account'] = 'LIQ'
return JsonResponse(data, status=400)
if operation.type != Operation.EDIT:
to_checkout_balance += operation.amount
operationgroup.amount += operation.amount