Merge branch 'file_upload' into 'dev'

File upload

See merge request !484
remotes/origin/dev
Andrey 8 years ago
commit 3bb2936cee
  1. 2
      finance/views.py

@ -195,7 +195,7 @@ class InvoiceDetailView(APIView):
invoice.status = status
invoice.key = key
if bill.check_pay() and (invoice.price < price):
if bill.check_pay() and (invoice.price < int(price)):
return Response("""Нельзя менять стоимость по счёту в большую сторону,
когда один из платежей оплачен""", status=400)

Loading…
Cancel
Save