Merge pull request #54818 from frappe/mergify/bp/version-16-hotfix/pr-54783

fix: disallow editing on reversal journals (backport #54783)
This commit is contained in:
ruthra kumar
2026-05-18 15:41:05 +05:30
committed by GitHub

View File

@@ -70,6 +70,10 @@ frappe.ui.form.on("Journal Entry", {
},
refresh: function (frm) {
if (frm.doc.reversal_of && (frm.is_new() || frm.doc.docstatus == 0)) {
frm.set_read_only();
}
erpnext.toggle_naming_series();
if (frm.doc.docstatus > 0) {