You need to enable notifications at the Location Type level (for all locations of that Location Type) or for each location you’d like to receive notifications (if there are some locations that are overriding the default supported activities).
Admittedly, the usability around User roles and Location supported activities is poor to quite poor and could use some work (i.e. a feature to show you what to expect with different settings, allowing a dry run session, etc). For now, you need to flail around until you get it right.
NOTE: This needs to be added to openboxes-config.groovy (not openboxes-config.properties) since Java / Groovy does not handle boolean values properly when they are included in .properties files.
Also, you might be able to trigger the emails on-demand using an admin feature under Configuration > Background Jobs.
Login as a Superuser
Click on the Cog icon in the upper right corner to display the Configuration menu
Click on the Administration > Settings menu option
Click on the Background Jobs tab
Click on the Trigger button next to the Send Stock Alerts Job label
After you have triggered the job, I would recommend deleting the trigger.
I’ll leave the writing of the cron expression as an exercise for the reader since it’ll depend on the time it is near you. Just note that Quartz will likely be using UTC as its timezone.
I would also recommend not using this cron expression * * * * * ? as it’ll trigger the job once a second forever.
As an example, It’s 2:01 PM CDT here in Milwaukee, so I just created a cron trigger for “Every hour at the 5 minute mark” which will execute next at 2:05 PM CDT.
0 5 * * * ?
… which turned into this trigger. See the Next fire time to make sure it’s going to trigger soon.
Note that the Quartz cron expression might be slightly different (more expressive?) than the regular cron expressions, so review the Quartz documentation to get a better understanding of what is expected.
There are probably some utilities on the web to help you generate a Quartz cron expression, but I don’t have any to suggest at the moment.
I’m bumping this because the problem is still there.
So resuming:
It sends only at midnight expiry alerts for the location: Roda JC.
Strange thing about that is, that it’s listing products that are no longer in the system.
2024-06-19 09:23:06,270 [SendStockAlertsGParsPool_Worker-5.0] INFO report.NotificationService - Skipped Expiry Alerts - Locatie Magazijn Brunssum email for location Locatie Magazijn Brunssum because there are no alerts