fix: Filter options for Additional Discount Account

This commit is contained in:
GangaManoj 2021-07-15 22:01:38 +05:30 committed by Deepesh Garg
parent 9e788cfdcd
commit c1d65cfa8d

View File

@ -591,6 +591,16 @@ frappe.ui.form.on('Sales Invoice', {
};
});
frm.set_query("additional_discount_account", function() {
return {
filters: {
company: frm.doc.company,
is_group: 0,
root_type: "Profit and Loss",
}
};
});
frm.custom_make_buttons = {
'Delivery Note': 'Delivery',
'Sales Invoice': 'Return / Credit Note',