fix: Filter options for Additional Discount Account

This commit is contained in:
GangaManoj 2021-07-17 17:41:06 +05:30
parent 87d448e039
commit 7bbc9a886d

View File

@ -499,6 +499,16 @@ frappe.ui.form.on("Purchase Invoice", {
'Payment Entry': 'Payment'
}
frm.set_query("additional_discount_account", function() {
return {
filters: {
company: frm.doc.company,
is_group: 0,
root_type: "Profit and Loss",
}
};
});
frm.fields_dict['items'].grid.get_field('deferred_expense_account').get_query = function(doc) {
return {
filters: {