From 1a3413875f1382fc3c92e74cdc9610318a0ddf20 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 17 Nov 2015 17:12:37 +0530 Subject: [PATCH] [fix] Allowed Equity accounts in closing account in Period Closing Voucher --- .../period_closing_voucher.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/erpnext/accounts/doctype/period_closing_voucher/period_closing_voucher.js b/erpnext/accounts/doctype/period_closing_voucher/period_closing_voucher.js index 51d81173ee..364b78c876 100644 --- a/erpnext/accounts/doctype/period_closing_voucher/period_closing_voucher.js +++ b/erpnext/accounts/doctype/period_closing_voucher/period_closing_voucher.js @@ -10,12 +10,12 @@ cur_frm.cscript.onload = function(doc, cdt, cdn) { // ***************** Get Account Head ***************** cur_frm.fields_dict['closing_account_head'].get_query = function(doc, cdt, cdn) { - return{ - filters:{ - "company": doc.company, - "root_type": "Liability", - "freeze_account": "No", - "is_group": 0 - } + return { + filters: [ + ['Account', 'company', '=', doc.company], + ['Account', 'is_group', '=', '0'], + ['Account', 'freeze_account', '=', 'No'], + ['Account', 'root_type', 'in', 'Liability, Equity'] + ] } }