Merge pull request #15592 from shreyashah115/jv
Allow Reverse JV for all submitted docs
This commit is contained in:
commit
db5ffce742
@ -24,7 +24,7 @@ frappe.ui.form.on("Journal Entry", {
|
||||
}, "fa fa-table");
|
||||
}
|
||||
|
||||
if(frm.doc.docstatus==1 && frm.doc.naming_series=="JV-") {
|
||||
if(frm.doc.docstatus==1) {
|
||||
frm.add_custom_button(__('Reverse Journal Entry'), function() {
|
||||
return erpnext.journal_entry.reverse_journal_entry(frm);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user