32 lines
645 B
JavaScript
32 lines
645 B
JavaScript
|
wn.query_reports["Bank Clearance Summary"] = {
|
||
|
"filters": [
|
||
|
{
|
||
|
"fieldname":"from_date",
|
||
|
"label": "From Date",
|
||
|
"fieldtype": "Date",
|
||
|
"default": wn.defaults.get_user_default("year_start_date"),
|
||
|
"width": "80"
|
||
|
},
|
||
|
{
|
||
|
"fieldname":"to_date",
|
||
|
"label": "To Date",
|
||
|
"fieldtype": "Date",
|
||
|
"default": get_today()
|
||
|
},
|
||
|
{
|
||
|
"fieldname":"account",
|
||
|
"label": "Bank Account",
|
||
|
"fieldtype": "Link",
|
||
|
"options": "Account",
|
||
|
"get_query": function() {
|
||
|
return {
|
||
|
"query": "accounts.utils.get_account_list",
|
||
|
"filters": {
|
||
|
"is_pl_account": "No",
|
||
|
"account_type": "Bank or Cash"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
]
|
||
|
}
|