Adding Payments View for Fees (#13939)
* Adding View Payments For Fees
* Adding View Payments For Fees
* Adding Payments View For Fees
diff --git a/erpnext/education/doctype/fees/fees.js b/erpnext/education/doctype/fees/fees.js
index 2a7218a..7346a8d 100644
--- a/erpnext/education/doctype/fees/fees.js
+++ b/erpnext/education/doctype/fees/fees.js
@@ -66,6 +66,9 @@
};
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() {