1b.app
Link copied -

Variable operation [cdatetime]

Set up the action https://onebox.mim.kiev.ua/admin/shop/workflowstatus/135/action/new/

The idea is that when the value in the field with the date and time type is completely less than the current date and time, the transition to the stage worked.
In fact, it turns out that it checks only the date - https://onebox.mim.kiev.ua/30044/ , and time does not take into account
Is this correct or is there a mistake?
What is the best way to check and change the stage by date, where we take into account both the date and time of execution Before?
Original question is available on version: ru

Answers:

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license
Everything is correct, but it is also necessary that the value of the additional field also be with the type "Date and time"
+ Your check is not quite correct - it checks if the values of the additional field are less than the current date and time, then it works.
You need the opposite, check if the value of the additional field is greater than the current date and time, then work, just change the condition
10.12.2021, 13:35
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license

Sukhanitsky Andrey
OneBox Corp.
Integrator wrote:
You need the opposite, check if the value of the additional field is greater than the current date and time, then work, just change the condition

Soryan, everything is right with you, just check the type of your field
10.12.2021, 13:38
Original comment available on version: ru


Sukhanitsky Andrey
OneBox Corp.
Integrator wrote:
Everything is correct, but it is also necessary that the value of the additional field also be with the type "Date and time"

So it is initially)

Sukhanitsky Andrey
OneBox Corp.
Integrator wrote:
+ Your check is not quite correct - it checks if the values of the additional field are less than the current date and time, then it works.
You need the opposite, check if the value of the additional field is greater than the current date and time, then work, just change the condition

Why?)
If you put that the value of add. fields are greater than the current date and time, then it will immediately work))
Example: now 10.12 , and I set 12.12 12:00
10.12 < 12.12 12:00 - voila, the action will work.
And if I put less, then everything works correctly.
The question is that time is not taken into account (specified an example in the description)
10.12.2021, 13:40
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license

Timofeev Artem Olegovich
KTS wrote:
The question is that time is not taken into account (specified an example in the description)

I already wrote that everything is ok with the condition, then check the value in the process
10.12.2021, 13:42
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license
verification works fine, I always set it up like this, it works flawlessly
10.12.2021, 13:42
Original comment available on version: ru


Sukhanitsky Andrey
OneBox Corp.
Integrator wrote:
verification works fine, I always set it up like this, it works flawlessly

I also set it up like this, but in this case it does not work.
13.12.2021, 11:14
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license
1) check if the field is filled
2) what is the value of the additional field and what is the current time?
3) where did you switch to when you switched to a status with a check?
13.12.2021, 11:21
Original comment available on version: ru

Artem, Andrey wrote everything correctly. You have a date that is being checked with the value "2021-12-09 00:00:00" and the switch occurred at "2021-12-09 00:00:11". The condition has been met. Time is taken into account. Whatever time is not taken into account, but only the date is another variable
14.12.2021, 13:06
Original comment available on version: ru


Maria
OneBox production wrote:
https://onebox.mim.kiev.ua/30044/

Colleagues, so, but nothing that the time is set -
The question was:

Timofeev Artem Olegovich
KTS wrote:
The idea is that when the value in the field with the date and time type is completely less than the current date and time, the transition to the stage worked.
In fact, it turns out that it only checks the date - https://onebox.mim.kiev.ua/30044/ , and time does not take into account

We have not yet reached 09.12 21:00, and the action has already worked. Accordingly, the question is - is time taken into account correctly?

Sukhanitsky Andrey
OneBox Corp.
Integrator wrote:
1) check if the field is filled
2) what is the value of the additional field and what is the current time?
3) where did you switch to when you switched to a status with a check?

1) Of course -
https://onebox.mim.kiev.ua/app/history/orders/30044/?systemchange=1&filter2_...
2) - it is clearly visible that the action worked at 00:11 09.12
3) to where it should have been, but did not take into account the time, but only the date
15.12.2021, 10:07
Original comment available on version: ru

Artem, do you have another example of a process that switched at the wrong time? So that the field that you are checking is set and the date and time are not 00:00:00
15.12.2021, 10:15
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license

Timofeev Artem Olegovich
KTS wrote:
3) where it should have been, but did not take into account the time, but only the date

in the description in the check, the field "Date of completion of the Event" is indicated, and on the screenshots you show "Date until". Either you renamed, or another field in the check
15.12.2021, 11:28
Original comment available on version: ru


Sukhanitsky Andrey
OneBox Corp.
Integrator wrote:

Timofeev Artem Olegovich
KTS wrote:
3) where it should have been, but did not take into account the time, but only the date

in the description in the check, the field "Date of completion of the Event" is indicated, and on the screenshots you show "Date until". Either you renamed, or another field in the check

Everything is right there. showed this field on the screenshot of the Log - this is a system
23.12.2021, 16:13
Original comment available on version: ru


Maria
OneBox production wrote:
Artem, Andrey wrote everything correctly. You have a date that is being checked with the value "2021-12-09 00:00:00" and the switch occurred at "2021-12-09 00:00:11". The condition has been met. Time is taken into account. Whatever time is not taken into account, but only the date is another variable

Figured it out on a few tests. Now time counts. There is a possibility that the client did not set the time
23.12.2021, 16:26
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment