diff --git a/erpnext/accounts/doctype/journal_entry/journal_entry.js b/erpnext/accounts/doctype/journal_entry/journal_entry.js index 34fc7513946..d33cbf66a46 100644 --- a/erpnext/accounts/doctype/journal_entry/journal_entry.js +++ b/erpnext/accounts/doctype/journal_entry/journal_entry.js @@ -52,7 +52,8 @@ erpnext.accounts.JournalVoucher = frappe.ui.form.Controller.extend({ ["against_invoice", "Sales Invoice", "customer"]], function(i, opts) { me.frm.set_query(opts[0], "accounts", function(doc, cdt, cdn) { var jvd = frappe.get_doc(cdt, cdn); - frappe.model.validate_missing(jvd, ["party_type", "party"]); + frappe.model.validate_missing(jvd, "party_type"); + frappe.model.validate_missing(jvd, "party"); return { filters: [ [opts[1], opts[2], "=", jvd.party],