From 9159786d3587ab3ec0a5d66068203e62c1cf5ff8 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 1 Feb 2013 17:49:56 +0530 Subject: [PATCH] fixes in budget control --- accounts/doctype/budget_control/budget_control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/doctype/budget_control/budget_control.py b/accounts/doctype/budget_control/budget_control.py index a3e17409af..66a48a2dee 100644 --- a/accounts/doctype/budget_control/budget_control.py +++ b/accounts/doctype/budget_control/budget_control.py @@ -83,7 +83,7 @@ class DocType: # validate monthly budget self.validate_budget(gle['account'], gle['cost_center'], \ - flt(actual) + flt(curr_amt), budget, 'monthly_bgt_flag') + flt(actual) + flt(curr_amt), budget, bgt_flag[0]['monthly_bgt_flag']) # update actual against budget allocated in cost center webnotes.conn.sql("""update `tabBudget Detail` set actual = ifnull(actual,0) + %s