Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use DateRange control in Leave Application (and wherever applicable) over from_date, to_date #2861

Open
gavindsouza opened this issue Mar 14, 2025 · 0 comments

Comments

@gavindsouza
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Slow, buggy implementations of from_date and to_date in forms that work by adding two Date fields and writing custom code to make sure from_date not greater than to_date.

Describe the solution you'd like

Either set correct minDate or use the DateRange control that is being used in filters in other views.

let field = cur_frm.page.add_field({
			fieldname: "leaves_date_range",
			label: __("Leave Date Range"),
			fieldtype: "DateRange",
		})

Describe the alternatives you've considered

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant