From 2feab912a11ae74e2266324586703fded1c27ef0 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 1 Feb 2013 16:34:48 +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 dcab3ac409..a3e17409af 100644 --- a/accounts/doctype/budget_control/budget_control.py +++ b/accounts/doctype/budget_control/budget_control.py @@ -95,7 +95,7 @@ class DocType: # used in General Ledger Page Report # used for Budget where cost center passed as extra argument acc, f, t = arg.split('~~~') - c, fy = '', get_defaults()['fiscal_year'] + c, fy = '', webnotes.conn.get_defaults()['fiscal_year'] det = webnotes.conn.sql("select debit_or_credit, lft, rgt, is_pl_account from tabAccount where name=%s", acc) if f: c += (' and t1.posting_date >= "%s"' % f)