mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-20 21:49:18 +00:00
fix: disallow editing on reversal journals
(cherry picked from commit 26ca7445eb)
This commit is contained in:
@@ -70,6 +70,10 @@ frappe.ui.form.on("Journal Entry", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
refresh: function (frm) {
|
refresh: function (frm) {
|
||||||
|
if (frm.doc.reversal_of && (frm.is_new() || frm.doc.docstatus == 0)) {
|
||||||
|
frm.set_read_only();
|
||||||
|
}
|
||||||
|
|
||||||
erpnext.toggle_naming_series();
|
erpnext.toggle_naming_series();
|
||||||
|
|
||||||
if (frm.doc.docstatus > 0) {
|
if (frm.doc.docstatus > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user