fix: Removed company filter for Loan Type (#26463)

This commit is contained in:
Jannat Patel
2021-07-13 15:29:58 +05:30
committed by GitHub
parent 23db6a8e3a
commit 1b8670b263
2 changed files with 0 additions and 16 deletions

View File

@@ -15,15 +15,6 @@ frappe.ui.form.on('Loan', {
};
});
frm.set_query("loan_type", function () {
return {
"filters": {
"docstatus": 1,
"company": frm.doc.company
}
};
});
frm.set_query("interest_income_account", function () {
return {
"filters": {

View File

@@ -7,13 +7,6 @@ frappe.ui.form.on('Loan Application', {
refresh: function(frm) {
frm.trigger("toggle_fields");
frm.trigger("add_toolbar_buttons");
frm.set_query('loan_type', () => {
return {
filters: {
company: frm.doc.company
}
};
});
},
repayment_method: function(frm) {
frm.doc.repayment_amount = frm.doc.repayment_periods = ""