Added finance book filter to financial_statements.js
This commit is contained in:
parent
40559d5f5c
commit
8cbbdfdf30
@ -70,6 +70,20 @@ function get_filters(){
|
|||||||
"default": frappe.defaults.get_user_default("Company"),
|
"default": frappe.defaults.get_user_default("Company"),
|
||||||
"reqd": 1
|
"reqd": 1
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"fieldname":"finance_book",
|
||||||
|
"label": __("Finance Book"),
|
||||||
|
"fieldtype": "Link",
|
||||||
|
"options": "Finance Book",
|
||||||
|
"get_query": function() {
|
||||||
|
var company = frappe.query_report_filters_by_name.company.get_value();
|
||||||
|
return {
|
||||||
|
"filters": {
|
||||||
|
"company": company,
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"fieldname":"from_fiscal_year",
|
"fieldname":"from_fiscal_year",
|
||||||
"label": __("Start Year"),
|
"label": __("Start Year"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user