From 70ac2d2c51e5598fce968d18ef8e780c212c899a Mon Sep 17 00:00:00 2001 From: Gaurav Naik Date: Mon, 23 Apr 2018 02:56:50 +0530 Subject: [PATCH] Added finance book filter in accounts_receivable.js --- .../accounts_receivable/accounts_receivable.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/erpnext/accounts/report/accounts_receivable/accounts_receivable.js b/erpnext/accounts/report/accounts_receivable/accounts_receivable.js index ec1e9f9d61..776835e86d 100644 --- a/erpnext/accounts/report/accounts_receivable/accounts_receivable.js +++ b/erpnext/accounts/report/accounts_receivable/accounts_receivable.js @@ -10,6 +10,20 @@ frappe.query_reports["Accounts Receivable"] = { "options": "Company", "default": frappe.defaults.get_user_default("Company") }, + { + "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":"customer", "label": __("Customer"),