Employee benefit - filters fro earning component
This commit is contained in:
parent
df0ffab16c
commit
4d93d339f7
@ -2,7 +2,16 @@
|
|||||||
// For license information, please see license.txt
|
// For license information, please see license.txt
|
||||||
|
|
||||||
frappe.ui.form.on('Employee Benefit Application', {
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -2,7 +2,15 @@
|
|||||||
// For license information, please see license.txt
|
// For license information, please see license.txt
|
||||||
|
|
||||||
frappe.ui.form.on('Employee Benefit Claim', {
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user