mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-13 18:02:30 +00:00
Fix variable naming and one grammar error
Changed from nextAudit to next_audit.
This commit is contained in:
parent
51cb9f88f5
commit
f26db93a16
1 changed files with 4 additions and 4 deletions
|
|
@ -8,7 +8,7 @@ Long description
|
||||||
.PARAMETER Tag
|
.PARAMETER Tag
|
||||||
The asset tag of the asset you wish to audit
|
The asset tag of the asset you wish to audit
|
||||||
|
|
||||||
.PARAMETER purchase_date
|
.PARAMETER Next_audit
|
||||||
Due date for the asset's next audit
|
Due date for the asset's next audit
|
||||||
|
|
||||||
.PARAMETER Location_id
|
.PARAMETER Location_id
|
||||||
|
|
@ -32,7 +32,7 @@ function New-SnipeitAudit() {
|
||||||
[int]$location_id,
|
[int]$location_id,
|
||||||
|
|
||||||
[parameter(mandatory = $false)]
|
[parameter(mandatory = $false)]
|
||||||
[datetime]$nextAudit,
|
[datetime]$next_audit,
|
||||||
|
|
||||||
[parameter(mandatory = $false)]
|
[parameter(mandatory = $false)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
@ -52,8 +52,8 @@ function New-SnipeitAudit() {
|
||||||
$Values += @{"asset_tag" = $tag}
|
$Values += @{"asset_tag" = $tag}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($PSBoundParameters.ContainsKey('nextAudit')) {
|
if ($PSBoundParameters.ContainsKey('next_audit')) {
|
||||||
$Values += @{"next_audit_date" = ($nextAudit).ToString("yyyy-MM-dd")}
|
$Values += @{"next_audit_date" = ($next_audit).ToString("yyyy-MM-dd")}
|
||||||
}
|
}
|
||||||
|
|
||||||
$Parameters = @{
|
$Parameters = @{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue