I want to to apply conditional work flow on a custom doctype i.e. if doc.date <> today (if date field is different than current date), it should be approved from system manager. date field type is datetime.
What should be the condition in transition row?
It will always be different from the current time since it’s a datetime field. And since it’s next to impossible to have the same time (seconds included) for the datetime field and the current datetime, don’t thin the condition is needed.
Thanks for the reply Michelle, I was wondering if I could exclude seconds and just compare the date. If it’s not the same date then approval is required. I tried this:
doc.date.now().date() != created_on.now().date
Any solution guys?