Added finance book filter to General Ledger

This commit is contained in:
Gaurav Naik 2018-04-23 02:29:22 +05:30 committed by Nabin Hait
parent a6d3cbfbc5
commit 460d96f16d

View File

@ -11,6 +11,20 @@ frappe.query_reports["General Ledger"] = {
"default": frappe.defaults.get_user_default("Company"),
"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_date",
"label": __("From Date"),