[hot] coa

This commit is contained in:
Rushabh Mehta 2015-04-13 12:16:25 +05:30
parent b4c4351513
commit 39c84fe31c
2 changed files with 190 additions and 189 deletions

View File

@ -64,7 +64,7 @@ def get_chart(chart_name):
chart = {} chart = {}
if chart_name == "Standard": if chart_name == "Standard":
from erpnext.accounts.doctype.account.chart_of_accounts.verified import standard_chart_of_accounts from erpnext.accounts.doctype.account.chart_of_accounts.verified import standard_chart_of_accounts
return standard_chart_of_accounts.coa return standard_chart_of_accounts.get()
else: else:
path = os.path.join(os.path.dirname(__file__), "verified") path = os.path.join(os.path.dirname(__file__), "verified")
for fname in os.listdir(path): for fname in os.listdir(path):

View File

@ -4,7 +4,8 @@
from __future__ import unicode_literals from __future__ import unicode_literals
from frappe import _ from frappe import _
coa = { def get():
return {
_("Application of Funds (Assets)"): { _("Application of Funds (Assets)"): {
_("Current Assets"): { _("Current Assets"): {
_("Accounts Receivable"): { _("Accounts Receivable"): {
@ -194,4 +195,4 @@ coa = {
}, },
"root_type": "Equity" "root_type": "Equity"
} }
} }