fix: Filter options for Additional Discount Account
This commit is contained in:
parent
03f2706971
commit
ff25683378
@ -499,6 +499,16 @@ frappe.ui.form.on("Purchase Invoice", {
|
|||||||
'Payment Entry': 'Payment'
|
'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) {
|
frm.fields_dict['items'].grid.get_field('deferred_expense_account').get_query = function(doc) {
|
||||||
return {
|
return {
|
||||||
filters: {
|
filters: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user