Balance Sheet always shows accumulated values from previous fiscal year (#8668)

This commit is contained in:
Nabin Hait
2017-05-04 12:12:29 +05:30
committed by GitHub
parent 1c09a991f3
commit 932423ecba
4 changed files with 20 additions and 17 deletions

View File

@@ -11,7 +11,6 @@ from frappe.utils import formatdate, get_number_format_info
# imported to enable erpnext.accounts.utils.get_account_currency
from erpnext.accounts.doctype.account.account import get_account_currency
from erpnext.accounts.report.financial_statements import sort_root_accounts
class FiscalYearError(frappe.ValidationError): pass
@@ -652,6 +651,8 @@ def get_companies():
@frappe.whitelist()
def get_children():
from erpnext.accounts.report.financial_statements import sort_root_accounts
args = frappe.local.form_dict
doctype, company = args['doctype'], args['company']
fieldname = frappe.db.escape(doctype.lower().replace(' ','_'))