Merge pull request #19625 from ruchamahabal/fix_cash_entry

fix(minor): default Cash Entry account not getting fetched in Journal Entry
This commit is contained in:
Deepesh Garg 2019-11-20 16:15:55 +05:30 committed by GitHub
commit 6a743be1de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -398,7 +398,7 @@ cur_frm.cscript.voucher_type = function(doc, cdt, cdn) {
method: "erpnext.accounts.doctype.journal_entry.journal_entry.get_default_bank_cash_account",
args: {
"account_type": (doc.voucher_type=="Bank Entry" ?
"Bank" : (doc.voucher_type=="Cash" ? "Cash" : null)),
"Bank" : (doc.voucher_type=="Cash Entry" ? "Cash" : null)),
"company": doc.company
},
callback: function(r) {