Skip to content

Commit

Permalink
fix: prompt user to select company for shift & attendance report crea…
Browse files Browse the repository at this point in the history
…tion (#2461)

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
  • Loading branch information
AyshaHakeem and ruchamahabal authored Dec 4, 2024
1 parent cf2df9f commit 3776c60
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ def execute(filters: Filters | None = None) -> tuple:
if not (filters.month and filters.year):
frappe.throw(_("Please select month and year."))

if not filters.company:
frappe.throw(_("Please select company."))

if filters.company:
filters.companies = [filters.company]
if filters.include_company_descendants:
Expand Down

0 comments on commit 3776c60

Please sign in to comment.