Sales invoice query in journal entry
diff --git a/erpnext/accounts/doctype/journal_entry/journal_entry.js b/erpnext/accounts/doctype/journal_entry/journal_entry.js
index 34fc751..d33cbf6 100644
--- a/erpnext/accounts/doctype/journal_entry/journal_entry.js
+++ b/erpnext/accounts/doctype/journal_entry/journal_entry.js
@@ -52,7 +52,8 @@
 			["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],