08-10-2016 12:48 PM
Hello, I would like to give an order five minutes before the finishing of the end of the shift (all days). How can I do it?
Solved! Go to Solution.
08-11-2016 02:38 AM
Hello Santiago94,
You can add an observer to the shift calendar object for the attribute 'unplanned' and use the following code in the observer method:
(attribute: string; oldValue: any) is do if ?.unplanned = false then ref(MyMethod).methcall(str_to_time("7:55:0")); end; end;
This will call the method 'MyMethod' 7 hours and 55 minutes after the shift has started. Assuming a 8 hour shift this is 5 minutes before the shift will end.