Skip to content

Commit

Permalink
Merge pull request #33080 from frappe/mergify/bp/version-14-hotfix/pr…
Browse files Browse the repository at this point in the history
…-33069

fix: Remove unnecessary filters from Journal Entry (backport #33069)
  • Loading branch information
deepeshgarg007 committed Nov 22, 2022
2 parents a2012cb + 387665d commit f71f907
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions erpnext/accounts/doctype/journal_entry/journal_entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,6 @@ erpnext.accounts.JournalEntry = class JournalEntry extends frappe.ui.form.Contro
var party_account_field = jvd.reference_type==="Sales Invoice" ? "debit_to": "credit_to";
out.filters.push([jvd.reference_type, party_account_field, "=", jvd.account]);

if (in_list(['Debit Note', 'Credit Note'], doc.voucher_type)) {
out.filters.push([jvd.reference_type, "is_return", "=", 1]);
}
}

if(in_list(["Sales Order", "Purchase Order"], jvd.reference_type)) {
Expand Down

0 comments on commit f71f907

Please sign in to comment.