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 <[email protected]>
(cherry picked from commit 3776c60)
  • Loading branch information
AyshaHakeem authored and mergify[bot] committed Dec 4, 2024
1 parent 51831cb commit 913b30a
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 913b30a

Please sign in to comment.