fix: cost center & account validation in Sales/Purchase Taxes and Charges (#26881)

This commit is contained in:
Frappe PR Bot
2021-08-10 19:38:39 +05:30
committed by GitHub
parent 66784a16cb
commit 1a39d1a311
6 changed files with 45 additions and 5 deletions

View File

@@ -31,6 +31,14 @@ frappe.ui.form.on(cur_frm.doctype, {
}
}
});
frm.set_query("cost_center", "taxes", function(doc) {
return {
filters: {
"company": doc.company,
"is_group": 0
}
};
});
}
},
validate: function(frm) {