diff --git a/erpnext/accounts/doctype/journal_entry/journal_entry.js b/erpnext/accounts/doctype/journal_entry/journal_entry.js index d7e5ee0b27..2b0003e210 100644 --- a/erpnext/accounts/doctype/journal_entry/journal_entry.js +++ b/erpnext/accounts/doctype/journal_entry/journal_entry.js @@ -138,7 +138,7 @@ cur_frm.script_manager.make(erpnext.accounts.JournalVoucher); cur_frm.cscript.refresh = function(doc) { cur_frm.cscript.is_opening(doc) erpnext.toggle_naming_series(); - cur_frm.cscript.voucher_type(); + cur_frm.cscript.voucher_type(doc); if(doc.docstatus==1) { cur_frm.add_custom_button(__('View Ledger'), function() {