Adding Payments View for Fees (#13939)

* Adding View Payments For Fees

* Adding View Payments For Fees

* Adding Payments View For Fees
This commit is contained in:
bghayad 2018-05-07 15:50:37 +03:00 committed by Nabin Hait
parent 7bd83f3d8e
commit 1184a7300a

View File

@ -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() {