fix(minor): filter bank accounts in bank statement import (#37525)

fix: filter by company in bank account
This commit is contained in:
Gursheen Kaur Anand 2023-10-21 17:59:12 +05:30 committed by GitHub
parent b0d440c34b
commit 9d392970f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;