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:
parent
7bd83f3d8e
commit
1184a7300a
@ -66,6 +66,9 @@ frappe.ui.form.on("Fees", {
|
|||||||
};
|
};
|
||||||
frappe.set_route("query-report", "General Ledger");
|
frappe.set_route("query-report", "General Ledger");
|
||||||
}, __("View"));
|
}, __("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) {
|
if(frm.doc.docstatus===1 && frm.doc.outstanding_amount>0) {
|
||||||
frm.add_custom_button(__("Payment Request"), function() {
|
frm.add_custom_button(__("Payment Request"), function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user