Merge pull request #54783 from ruthra-kumar/prevent_editing_reversal_journals

fix: disallow editing on reversal journals
This commit is contained in:
ruthra kumar
2026-05-11 10:08:18 +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) {