commit | 3b26b24af611f7b314d1696dab6c03b8d7a29e26 | [log] [tgz] |
---|---|---|
author | Abhishek Balam <abhishekbalam96@gmail.com> | Wed Apr 29 11:28:40 2020 +0530 |
committer | Abhishek Balam <abhishekbalam96@gmail.com> | Wed Apr 29 11:28:40 2020 +0530 |
tree | b01aa132f7790f43fcb1b90a60302c42b423214e | |
parent | 8dbc4e648b5a52a06bc87d66e11ef7e98a4a2492 [diff] |
fix semicolons as per codacy review
diff --git a/erpnext/accounts/doctype/journal_entry/journal_entry.js b/erpnext/accounts/doctype/journal_entry/journal_entry.js index 2e5d6b3..ccfdfce 100644 --- a/erpnext/accounts/doctype/journal_entry/journal_entry.js +++ b/erpnext/accounts/doctype/journal_entry/journal_entry.js
@@ -12,7 +12,7 @@ refresh: function(frm) { erpnext.toggle_naming_series(); - + if(frm.doc.docstatus==1) { frm.add_custom_button(__('Ledger'), function() { frappe.route_options = { @@ -144,7 +144,7 @@ } } }); - } + } else if(frm.doc.voucher_type=="Opening Entry") { return frappe.call({ type:"GET",
diff --git a/erpnext/accounts/doctype/journal_entry_template/journal_entry_template.js b/erpnext/accounts/doctype/journal_entry_template/journal_entry_template.js index 2a54977..13e9a3d 100644 --- a/erpnext/accounts/doctype/journal_entry_template/journal_entry_template.js +++ b/erpnext/accounts/doctype/journal_entry_template/journal_entry_template.js
@@ -30,8 +30,8 @@ row.account = d.account; }); refresh_field("accounts"); - } - + }; + if(!frm.doc.company) return; frm.trigger("clear_child");