Merge pull request #4331 from nabinhait/pcv_fix
[fix] Allowed Equity accounts in closing account in Period Closing Voucher
This commit is contained in:
commit
b45ca3ada0
@ -10,12 +10,12 @@ cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
|||||||
|
|
||||||
// ***************** Get Account Head *****************
|
// ***************** Get Account Head *****************
|
||||||
cur_frm.fields_dict['closing_account_head'].get_query = function(doc, cdt, cdn) {
|
cur_frm.fields_dict['closing_account_head'].get_query = function(doc, cdt, cdn) {
|
||||||
return{
|
return {
|
||||||
filters:{
|
filters: [
|
||||||
"company": doc.company,
|
['Account', 'company', '=', doc.company],
|
||||||
"root_type": "Liability",
|
['Account', 'is_group', '=', '0'],
|
||||||
"freeze_account": "No",
|
['Account', 'freeze_account', '=', 'No'],
|
||||||
"is_group": 0
|
['Account', 'root_type', 'in', 'Liability, Equity']
|
||||||
}
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user