fix: minor payroll_dashboard fixes (#22832)

* fix: minor payroll_dashboard fixes

* Update erpnext/hr/report/monthly_attendance_sheet/monthly_attendance_sheet.js

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>

Co-authored-by: Nabin Hait <nabinhait@gmail.com>
Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
This commit is contained in:
Anurag Mishra 2020-08-03 08:57:49 +05:30 committed by GitHub
parent 7fd339bbd6
commit ba52dd8ba6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 4 deletions

View File

@ -7,14 +7,14 @@
"doctype": "Dashboard Chart", "doctype": "Dashboard Chart",
"document_type": "Job Applicant", "document_type": "Job Applicant",
"dynamic_filters_json": "", "dynamic_filters_json": "",
"filters_json": "[[\"Job Applicant\",\"creation\",\"Previous\",\"1 month\"]]", "filters_json": "[[\"Job Applicant\",\"creation\",\"Timespan\",\"last month\",false]]",
"group_by_based_on": "status", "group_by_based_on": "status",
"group_by_type": "Count", "group_by_type": "Count",
"idx": 0, "idx": 0,
"is_public": 1, "is_public": 1,
"is_standard": 1, "is_standard": 1,
"last_synced_on": "2020-07-22 14:27:40.118498", "last_synced_on": "2020-07-28 16:19:12.109979",
"modified": "2020-07-22 14:33:00.404144", "modified": "2020-07-28 16:19:45.279490",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "HR", "module": "HR",
"name": "Job Application Status", "name": "Job Application Status",

View File

@ -35,7 +35,15 @@ frappe.query_reports["Monthly Attendance Sheet"] = {
"fieldname":"employee", "fieldname":"employee",
"label": __("Employee"), "label": __("Employee"),
"fieldtype": "Link", "fieldtype": "Link",
"options": "Employee" "options": "Employee",
get_query: () => {
var company = frappe.query_report.get_filter_value('company');
return {
filters: {
'company': company
}
};
}
}, },
{ {
"fieldname":"company", "fieldname":"company",