chore: label post save

(cherry picked from commit bf7a51791a)
This commit is contained in:
Deepesh Garg
2022-09-30 15:29:07 +05:30
committed by Mergify
parent 25e87641b6
commit b9bf5666bc

View File

@@ -61,6 +61,10 @@ frappe.ui.form.on('Loan', {
},
refresh: function (frm) {
if (frm.doc.repayment_schedule_type == "Pro-rated calendar months") {
frm.set_df_property("repayment_start_date", "label", "Interest Calculation Start Date");
}
if (frm.doc.docstatus == 1) {
if (["Disbursed", "Partially Disbursed"].includes(frm.doc.status) && (!frm.doc.repay_from_salary)) {
frm.add_custom_button(__('Request Loan Closure'), function() {