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 (backport #2461) (#2475)

Co-authored-by: Rucha Mahabal <[email protected]>
Co-authored-by: Aysha <[email protected]>
  • Loading branch information
3 people authored Dec 4, 2024
1 parent 7f5e969 commit 2bfd0b0
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 2bfd0b0

Please sign in to comment.