Open huuunterr opened 1 year ago
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
Debug mode
Describe the bug
When running the command
/path/to/php artisan snipeit:expiring-alerts
it only returns devices with warranties expiring soon. It does not return assets with an EOL time remaining less that what is configured in the notifications menu. This other issue (https://github.com/snipe/snipe-it/issues/7875) describes that triggering this command should also alert on near EOL assets.I have an asset type configured with an EOL time of 1 month, then an asset using that asset type with a purchase date of 24 days ago. It shows as 6 days until EOL in Snipe. My expiring alerts are configured for less than 45 days. When an alert is triggered, assets with warranties expiring within 45 days are returned, but not those with EOL dates within 45 days.
Am I misunderstanding something or is this an issue? Perhaps there is a different command for getting EOL devices. Everything I could find points towards expiring-alerts being the EOL notifier though.
Reproduction steps
1.Add asset type with EOL set to 1 month 2.Add asset using that asset type and set purchase date a few days back 3.Run in command line
/path/to/php artisan snipeit:expiring-alerts
4.Alerts for expiring warranties are returned, but not EOL devices ...Expected behavior
I would expect for the email alert to contain the item that has an EOL date within the next month.
Screenshots
No response
Snipe-IT Version
v6.0.14
Operating System
Centos 7
Web Server
Apache httpd
PHP Version
7.4.33
Operating System
Windows 10 22h2
Browser
Google Chrome
Version
116.0.5845.141
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
No response
Additional context
No response