fix(Bank Reconciliation): Filter Bank Account drop-down list

This commit is contained in:
Ganga Manoj
2021-03-13 23:38:30 +05:30
parent 105a9fdff1
commit 017d168b03

View File

@@ -21,6 +21,14 @@ frappe.ui.form.on("Bank Reconciliation", {
};
});
frm.set_query("bank_account", function() {
return {
"filters": {
"is_company_account": 1
}
};
});
frm.set_value("from_date", frappe.datetime.month_start());
frm.set_value("to_date", frappe.datetime.month_end());
},