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(minor): filter bank accounts in bank statement import (#37525)

fix: filter by company in bank account
(cherry picked from commit 9d39297)

Co-authored-by: Gursheen Kaur Anand <40693548+GursheenK@users.noreply.github.com>
  • Loading branch information
mergify[bot] and GursheenK authored Oct 23, 2023
1 parent 50daf70 commit 1cb9f4c
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 1cb9f4c

Please sign in to comment.