Nav menu button makes pos menu change?

So I made the interactive start/stop workperiod button, but some how it bug the vavigation screen.

Now here are my settings for this Automated Command:

Problems:

  • Have to hit the button several times before it ends the work period.
  • The navigation menu is changed after the workperiod is closed.

Button Code:

[='{SETTING:ISCURRENTWORKPERIODOPEN}'=='TRUE' ? '<block 25,20,25,20 Green>' : '<block 25,20,25,20 Red>']WERKPERIODE IS<linebreak/><b>[=('{SETTING:ISCURRENTWORKPERIODOPEN}'=='TRUE' ? 'OPEN' : 'AFGESLOTEN')]</b><linebreak/><linebreak/>[=TN('{REPORT TICKET COUNT:(TS.Status=Unpaid)}')>0 ? 'Kan niet afsluiten met<linebreak/>with ' + TN('{REPORT TICKET COUNT:(TS.Status=Unpaid)}') + ' open bonnen<linebreak/><linebreak/>Klik hier om naar de<linebreak/>open bonnen te kijken' : 'Werk periode <linebreak/>' + ('{SETTING:ISCURRENTWORKPERIODOPEN}'=='TRUE' ? 'afsluiten' : 'openen') + '?<linebreak/>Klik hier!']</block>

PS: Sorry for the watermark… :stuck_out_tongue_winking_eye:

The reason you had to hit it twice is a minute had not passed between when you started it and when you tried to end it the work period screen showed that and it must have been within a few seconds. As for the changing nav it looks like the database back up task you have running is messing up your layout. It did it after the backup finished. Try removing that rule see what happens. It shouldn’t do that and might be a bug but we could narrow it down if it is that.

Yep, it was the ‘Backup database on end workperiod’ function that messed up the nav-screen.

You might want to build automation to check for open tickets too. Work period can not end with open tickets but that action I don’t think warns of that like the screen does. You can use a script to check for open tickets and display it on your nav button.