fix: cost center & account validation in Sales/Purchase Taxes and Charges (#25929)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user