default account's custom query in company

This commit is contained in:
Nabin Hait 2015-06-01 15:14:38 +05:30
parent 47fe136d15
commit c17dff4b01

View File

@ -124,9 +124,9 @@ erpnext.company.setup_queries = function(frm) {
["default_cash_account", {"account_type": "Cash"}], ["default_cash_account", {"account_type": "Cash"}],
["default_receivable_account", {"account_type": "Receivable"}], ["default_receivable_account", {"account_type": "Receivable"}],
["default_payable_account", {"account_type": "Payable"}], ["default_payable_account", {"account_type": "Payable"}],
["default_expense_account", {"report_type": "Profit and Loss"}], ["default_expense_account", {"root_type": "Expense"}],
["default_income_account", {"report_type": "Profit and Loss"}], ["default_income_account", {"root_type": "Income"}],
["round_off_account", {"account_type": "Profit and Loss"}], ["round_off_account", {"root_type": "Expense"}],
["cost_center", {}], ["cost_center", {}],
["round_off_cost_center", {}] ["round_off_cost_center", {}]
], function(i, v) { ], function(i, v) {
@ -135,8 +135,8 @@ erpnext.company.setup_queries = function(frm) {
if (sys_defaults.auto_accounting_for_stock) { if (sys_defaults.auto_accounting_for_stock) {
$.each([ $.each([
["stock_adjustment_account", {"report_type": "Profit and Loss"}], ["stock_adjustment_account", {"root_type": "Expense"}],
["expenses_included_in_valuation", {"report_type": "Profit and Loss"}], ["expenses_included_in_valuation", {"root_type": "Expense"}],
["stock_received_but_not_billed", {"report_type": "Balance Sheet"}] ["stock_received_but_not_billed", {"report_type": "Balance Sheet"}]
], function(i, v) { ], function(i, v) {
erpnext.company.set_custom_query(frm, v); erpnext.company.set_custom_query(frm, v);