From 37b0fe30d01427836a2afbfb27c1a1db8de07d99 Mon Sep 17 00:00:00 2001 From: Anastasia Date: Fri, 10 Jul 2015 10:17:27 +0500 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=B2=20=D0=9F=D1=80=D0=BE=D0=B8=D0=B7=D0=B2=D0=BE=D0=B4=D1=81?= =?UTF-8?q?=D1=82=D0=B2=D0=B5=D0=BD=D0=BD=D0=BE=D0=B9=20=D1=82=D0=B0=D0=B1?= =?UTF-8?q?=D0=BB=D0=B8=D1=86=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- asuzr/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asuzr/views.py b/asuzr/views.py index 0a80a74..8d3c229 100644 --- a/asuzr/views.py +++ b/asuzr/views.py @@ -246,7 +246,7 @@ def production_table(request, order_id): table.verbose_name2 = u'Стоимость: %s' % str(curr_order.price) costs_sum = order_costs.aggregate(Sum('value')) table.set_summary(costs_sum['value__sum'] or 0) - table.set_balance(curr_order.price - costs_sum['value__sum'] or 0) + table.set_balance(curr_order.price - (costs_sum['value__sum'] or 0)) RequestConfig(request).configure(table) return render(request, 'asuzr/table.html', {'table': table, 'title': title})