Merge pull request #15592 from shreyashah115/jv

Allow Reverse JV for all submitted docs
This commit is contained in:
Shreya Shah 2018-10-05 13:33:11 +05:30 committed by GitHub
commit db5ffce742
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ frappe.ui.form.on("Journal Entry", {
}, "fa fa-table"); }, "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() { frm.add_custom_button(__('Reverse Journal Entry'), function() {
return erpnext.journal_entry.reverse_journal_entry(frm); return erpnext.journal_entry.reverse_journal_entry(frm);
}); });