Added report_type to payment account filter

This commit is contained in:
nick9822 2017-06-26 15:29:44 +05:30 committed by GitHub
parent 881491cd2b
commit 82e816054e

View File

@ -225,7 +225,8 @@ cur_frm.fields_dict.cash_bank_account.get_query = function(doc) {
filters: [ filters: [
["Account", "account_type", "in", ["Cash", "Bank"]], ["Account", "account_type", "in", ["Cash", "Bank"]],
["Account", "is_group", "=",0], ["Account", "is_group", "=",0],
["Account", "company", "=", doc.company] ["Account", "company", "=", doc.company],
["Account", "report_type", "=", "Balance Sheet"]
] ]
} }
} }