fix: Remove unnecessary filters from Journal Entry
diff --git a/erpnext/accounts/doctype/journal_entry/journal_entry.js b/erpnext/accounts/doctype/journal_entry/journal_entry.js
index a5ff7f1..30a3201 100644
--- a/erpnext/accounts/doctype/journal_entry/journal_entry.js
+++ b/erpnext/accounts/doctype/journal_entry/journal_entry.js
@@ -253,9 +253,6 @@
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)) {