From c17dff4b013bc4af67e77815cfc86a1b2e92411c Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 1 Jun 2015 15:14:38 +0530 Subject: [PATCH] default account's custom query in company --- erpnext/setup/doctype/company/company.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/erpnext/setup/doctype/company/company.js b/erpnext/setup/doctype/company/company.js index 2c9d4f57cc..47f699d618 100644 --- a/erpnext/setup/doctype/company/company.js +++ b/erpnext/setup/doctype/company/company.js @@ -124,9 +124,9 @@ erpnext.company.setup_queries = function(frm) { ["default_cash_account", {"account_type": "Cash"}], ["default_receivable_account", {"account_type": "Receivable"}], ["default_payable_account", {"account_type": "Payable"}], - ["default_expense_account", {"report_type": "Profit and Loss"}], - ["default_income_account", {"report_type": "Profit and Loss"}], - ["round_off_account", {"account_type": "Profit and Loss"}], + ["default_expense_account", {"root_type": "Expense"}], + ["default_income_account", {"root_type": "Income"}], + ["round_off_account", {"root_type": "Expense"}], ["cost_center", {}], ["round_off_cost_center", {}] ], function(i, v) { @@ -135,8 +135,8 @@ erpnext.company.setup_queries = function(frm) { if (sys_defaults.auto_accounting_for_stock) { $.each([ - ["stock_adjustment_account", {"report_type": "Profit and Loss"}], - ["expenses_included_in_valuation", {"report_type": "Profit and Loss"}], + ["stock_adjustment_account", {"root_type": "Expense"}], + ["expenses_included_in_valuation", {"root_type": "Expense"}], ["stock_received_but_not_billed", {"report_type": "Balance Sheet"}] ], function(i, v) { erpnext.company.set_custom_query(frm, v);