From 49ecbd7353288e1b83eae72fab58f6fad9a8b8e9 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 3 Mar 2015 15:48:12 +0530 Subject: [PATCH] Sales invoice query in journal entry --- erpnext/accounts/doctype/journal_entry/journal_entry.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/journal_entry/journal_entry.js b/erpnext/accounts/doctype/journal_entry/journal_entry.js index 34fc751394..d33cbf66a4 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],