fix: disallow editing on reversal journals

(cherry picked from commit 26ca7445eb)
This commit is contained in:
ruthra kumar
2026-05-08 12:27:32 +05:30
committed by Mergify
parent 1fcd2837e8
commit 6a53982f4a

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) {