fixes in budget control

This commit is contained in:
Nabin Hait 2013-02-01 16:34:48 +05:30
parent 24c4bb5d6a
commit 2feab912a1

View File

@ -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)