snazy2000 / SnipeitPS

Powershell API Wrapper for Snipe-it
MIT License
181 stars 47 forks source link

Issue with Set-SnipeITAsset #300

Open Christopheric1 opened 1 year ago

Christopheric1 commented 1 year ago

I have been trying to set the Snipe-IT Asset purchase_date so that I can properly define when these machines will be EOL. I have that set for each model at 72 months and it used to work where I could set the purchase_date and the EOL date would automatically adjust.

Your Environment

Expected Behavior

Set-SnipeITAsset -id $id -purchase_date $newpurchasedate Should give me an updated EOL Date, but I get the old EOL date 2023-06-06_8-26-47

If I go into and Edit the item and clear the EOL date > Save and then Edit it again, it will show the correct EOL date and then I can save and it sticks.

That has been the only way I can make that piece work.

Thanks!