Skip to content

Commit

Permalink
fix: prompt user to select company for report shift & attendance repo…
Browse files Browse the repository at this point in the history
…rt creation
  • Loading branch information
AyshaHakeem committed Nov 27, 2024
1 parent b5b6c63 commit a6b6c77
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 a6b6c77

Please sign in to comment.