Employee benefit - filters fro earning component

This commit is contained in:
Jamsheer 2018-05-11 14:08:40 +05:30
parent df0ffab16c
commit 4d93d339f7
2 changed files with 21 additions and 4 deletions

View File

@ -2,7 +2,16 @@
// For license information, please see license.txt
frappe.ui.form.on('Employee Benefit Application', {
refresh: function(frm) {
setup: function(frm) {
frm.set_query("earning_component", "employee_benefits", function() {
return {
filters: {
type: "Earning",
is_flexible_benefit: true,
disabled: false,
is_pro_rata_applicable: true
}
}
})
}
});

View File

@ -2,7 +2,15 @@
// For license information, please see license.txt
frappe.ui.form.on('Employee Benefit Claim', {
refresh: function(frm) {
setup: function(frm) {
frm.set_query("earning_component", function() {
return {
filters: {
type: "Earning",
is_flexible_benefit: true,
disabled: false
}
}
})
}
});