fix: translation for status filter

This commit is contained in:
Rucha Mahabal 2022-05-13 20:44:35 +05:30
parent ed8a49737a
commit 08fb9a4318
2 changed files with 14 additions and 2 deletions

View File

@ -41,7 +41,13 @@ frappe.query_reports["Employee Leave Balance"] = {
"fieldname": "employee_status",
"label": __("Employee Status"),
"fieldtype": "Select",
"options": ["", "Active", "Inactive", "Suspended", "Left"],
"options": [
"",
{ "value": "Active", "label": __("Active") },
{ "value": "Inactive", "label": __("Inactive") },
{ "value": "Suspended", "label": __("Suspended") },
{ "value": "Left", "label": __("Left") },
],
"default": "Active",
}
],

View File

@ -35,7 +35,13 @@ frappe.query_reports['Employee Leave Balance Summary'] = {
fieldname: "employee_status",
label: __("Employee Status"),
fieldtype: "Select",
options: ["", "Active", "Inactive", "Suspended", "Left"],
options: [
"",
{ "value": "Active", "label": __("Active") },
{ "value": "Inactive", "label": __("Inactive") },
{ "value": "Suspended", "label": __("Suspended") },
{ "value": "Left", "label": __("Left") },
],
default: "Active",
}
]