Update journal_entry.js

This commit is contained in:
Nabin Hait
2019-01-23 12:14:55 +05:30
committed by GitHub
parent 270c4c2a87
commit 141c543f97

View File

@@ -175,6 +175,7 @@ erpnext.accounts.JournalEntry = frappe.ui.form.Controller.extend({
out.filters.push([jvd.reference_type, "per_billed", "<", 100]); out.filters.push([jvd.reference_type, "per_billed", "<", 100]);
} }
if(jvd.party_type && jvd.party) {
var party_field = ""; var party_field = "";
if(jvd.reference_type.indexOf("Sales")===0) { if(jvd.reference_type.indexOf("Sales")===0) {
var party_field = "customer"; var party_field = "customer";
@@ -185,6 +186,7 @@ erpnext.accounts.JournalEntry = frappe.ui.form.Controller.extend({
if (party_field) { if (party_field) {
out.filters.push([jvd.reference_type, party_field, "=", jvd.party]); out.filters.push([jvd.reference_type, party_field, "=", jvd.party]);
} }
}
return out; return out;
}); });