From 1184a7300a87167a6a476f9a16f365e6e17714ea Mon Sep 17 00:00:00 2001 From: bghayad Date: Mon, 7 May 2018 15:50:37 +0300 Subject: [PATCH] Adding Payments View for Fees (#13939) * Adding View Payments For Fees * Adding View Payments For Fees * Adding Payments View For Fees --- erpnext/education/doctype/fees/fees.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erpnext/education/doctype/fees/fees.js b/erpnext/education/doctype/fees/fees.js index 2a7218a7759..7346a8d55bd 100644 --- a/erpnext/education/doctype/fees/fees.js +++ b/erpnext/education/doctype/fees/fees.js @@ -66,6 +66,9 @@ frappe.ui.form.on("Fees", { }; frappe.set_route("query-report", "General Ledger"); }, __("View")); + frm.add_custom_button(__("Payments"), function() { + frappe.set_route("List", "Payment Entry", {"Payment Entry Reference.reference_name": frm.doc.name}); + }, __("View")); } if(frm.doc.docstatus===1 && frm.doc.outstanding_amount>0) { frm.add_custom_button(__("Payment Request"), function() {