default account's custom query in company
diff --git a/erpnext/setup/doctype/company/company.js b/erpnext/setup/doctype/company/company.js
index 2c9d4f5..47f699d 100644
--- a/erpnext/setup/doctype/company/company.js
+++ b/erpnext/setup/doctype/company/company.js
@@ -124,9 +124,9 @@
["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 @@
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);