this condition i have set for get Employees are on leave for today and still today this is running too.
this is the overview workspace for some more details
Please give the perfact solution for this.
this condition i have set for get Employees are on leave for today and still today this is running too.
Please give the perfact solution for this.
Instead of frappe.datetime.today()
use frappe.datetime.get_today()
or frappe.utils.today()
as this are the correct methods to get today date
It’s working now but still it is getting the red cross sign in left side why??, Have you any idea about it??
Thank you very much Hemil.
[
[“from_date”, “<=”, frappe.datetime.get_today(), false],
[“to_date”, “>=”, frappe.datetime.get_today(), false]
]
try to write like this
Now Quick list is unvisible after adding this condition.
OK again write condition like you write initially and hover on cross icon, it give the reason of that error
{"from_date":["<=","today"],"to_date":[">=","today"]}
write Like this
a cross sign is now okey but in overview page one popup is open after this
today is not a valid date string.
this message is in popup
Try to write “Today” instead of that and still if you not able to do that then You have to write server script for this functionality otherwise write date in static
No,
thanks for your time but it is running, whatever there is cross or not.
Thank you very much for support.