Skip to content

Commit

Permalink
Fixed totals by location not labelling unknown locations and prevente…
Browse files Browse the repository at this point in the history
…d including locations with only unbilled users.
  • Loading branch information
chrisjantzen committed Jan 30, 2025
1 parent 8973ebe commit a4feadc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions User_Billing_Update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Created Date: Tuesday, August 2nd 2022, 10:36:05 am
# Author: Chris Jantzen
# -----
# Last Modified: Tue Jul 09 2024
# Last Modified: Thu Jan 30 2025
# Modified By: Chris Jantzen
# -----
# Copyright (c) 2023 Sea to Sky Network Solutions
Expand Down Expand Up @@ -2747,7 +2747,10 @@ if ($BillingUpdate) {
$HTMLBody += '<p style="font-family: sans-serif; font-size: 14px; font-weight: normal; margin: 0; Margin-bottom: 15px;">'

$TotalsByLoc | Foreach-Object {
$HTMLBody += "<strong>$($_.Location):</strong> $($_.Billed) <br />"
$LocationName = if ($_.Location) { $_.Location} else { "Unknown"}
if ($_.Billed -and $_.Billed -gt 0) {
$HTMLBody += "<strong>$($LocationName):</strong> $($_.Billed) <br />"
}
}
$HTMLBody += "</p>"
}
Expand Down
2 changes: 1 addition & 1 deletion currentversion.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.19.6
2.19.7

0 comments on commit a4feadc

Please sign in to comment.