From 2182cd54878a4ff2896b2c3900027305ed55c306 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 16 Apr 2015 16:00:37 +0530 Subject: [PATCH] Update journal_entry.js --- erpnext/accounts/doctype/journal_entry/journal_entry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {