Merge pull request #27679 from pateljannat/revert-27037-salary-component-account-filter

Revert "fix: salary component account filter"
This commit is contained in:
Jannat Patel
2021-09-28 11:44:34 +05:30
committed by GitHub

View File

@@ -6,16 +6,10 @@ frappe.ui.form.on('Salary Component', {
frm.set_query("default_account", "accounts", function(doc, cdt, cdn) {
var d = locals[cdt][cdn];
var root_type = "Liability";
if (frm.doc.type == "Deduction") {
root_type = "Expense";
}
return {
filters: {
"is_group": 0,
"company": d.company,
"root_type": root_type
"company": d.company
}
};
});