Allow reverse jv for all submitted docs

This commit is contained in:
Shreya 2018-10-05 12:19:09 +05:30
parent 75fa6b3ee8
commit 4f5214a136

View File

@ -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);
});