Skip to content

Commit

Permalink
fix(minor): filter bank accounts in bank statement import (#37525)
Browse files Browse the repository at this point in the history
fix: filter by company in bank account
(cherry picked from commit 9d39297)
  • Loading branch information
GursheenK authored and mergify[bot] committed Oct 22, 2023
1 parent 50daf70 commit 816702a
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
// For license information, please see license.txt

frappe.ui.form.on("Bank Statement Import", {
onload(frm) {
frm.set_query("bank_account", function (doc) {
return {
filters: {
company: doc.company,
},
};
});
},

setup(frm) {
frappe.realtime.on("data_import_refresh", ({ data_import }) => {
frm.import_in_progress = false;
Expand Down

0 comments on commit 816702a

Please sign in to comment.