fix: hide cancel button from ledger / closing balance doctypes

This commit is contained in:
Sagar Vora
2026-03-13 23:20:42 +05:30
parent 56efe5e82c
commit c069a1787d
3 changed files with 9 additions and 7 deletions

View File

@@ -1,8 +1,8 @@
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
// frappe.ui.form.on("Account Closing Balance", {
// refresh(frm) {
// },
// });
frappe.ui.form.on("Account Closing Balance", {
refresh(frm) {
frm.page.btn_secondary.hide();
},
});

View File

@@ -3,6 +3,7 @@
frappe.ui.form.on("Advance Payment Ledger Entry", {
refresh(frm) {
frm.page.btn_secondary.hide();
frm.set_currency_labels(["amount"], frm.doc.currency);
frm.set_currency_labels(["base_amount"], erpnext.get_currency(frm.doc.company));
},

View File

@@ -2,6 +2,7 @@
// For license information, please see license.txt
frappe.ui.form.on("Payment Ledger Entry", {
// refresh: function(frm) {
// }
refresh(frm) {
frm.page.btn_secondary.hide();
},
});