mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
Sales invoice query in journal entry
This commit is contained in:
@@ -52,7 +52,8 @@ erpnext.accounts.JournalVoucher = frappe.ui.form.Controller.extend({
|
|||||||
["against_invoice", "Sales Invoice", "customer"]], function(i, opts) {
|
["against_invoice", "Sales Invoice", "customer"]], function(i, opts) {
|
||||||
me.frm.set_query(opts[0], "accounts", function(doc, cdt, cdn) {
|
me.frm.set_query(opts[0], "accounts", function(doc, cdt, cdn) {
|
||||||
var jvd = frappe.get_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 {
|
return {
|
||||||
filters: [
|
filters: [
|
||||||
[opts[1], opts[2], "=", jvd.party],
|
[opts[1], opts[2], "=", jvd.party],
|
||||||
|
|||||||
Reference in New Issue
Block a user