Skip to content

Commit 3776c60

Browse files
fix: prompt user to select company for shift & attendance report creation (#2461)
Co-authored-by: Rucha Mahabal <[email protected]>
1 parent cf2df9f commit 3776c60

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hrms/hr/report/monthly_attendance_sheet/monthly_attendance_sheet.py

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ def execute(filters: Filters | None = None) -> tuple:
3232
if not (filters.month and filters.year):
3333
frappe.throw(_("Please select month and year."))
3434

35+
if not filters.company:
36+
frappe.throw(_("Please select company."))
37+
3538
if filters.company:
3639
filters.companies = [filters.company]
3740
if filters.include_company_descendants:

0 commit comments

Comments
 (0)