mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-15 18:55:47 +00:00
added asset_eol_date
This commit is contained in:
parent
ecdf2a42c2
commit
f278d86420
1 changed files with 6 additions and 0 deletions
|
|
@ -125,6 +125,8 @@ function Set-SnipeitAsset() {
|
|||
|
||||
[datetime]$purchase_date,
|
||||
|
||||
[datetime]$asset_eol_date,
|
||||
|
||||
[parameter(mandatory = $false)]
|
||||
[int]$supplier_id,
|
||||
|
||||
|
|
@ -162,6 +164,10 @@ function Set-SnipeitAsset() {
|
|||
$Values['purchase_date'] = $Values['purchase_date'].ToString("yyyy-MM-dd")
|
||||
}
|
||||
|
||||
if ($Values['asset_eol_date']) {
|
||||
$Values['asset_eol_date'] = $Values['asset_eol_date'].ToString("yyyy-MM-dd")
|
||||
}
|
||||
|
||||
if ($customfields) {
|
||||
$Values += $customfields
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue