1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-09 03:43:51 -05:00

[AC-2805] Add AssignedSeats to ProviderOrganizationOrganizationDetailsView (#4446)

* Add 'AssignedSeats' to ProviderOrganizationOrganizationDetailsView

* Add newline

* Thomas' feedback
This commit is contained in:
Alex Morask
2024-07-03 10:33:37 -04:00
committed by GitHub
parent ef44def88b
commit 07d37b1b41
7 changed files with 32 additions and 3 deletions

View File

@ -79,7 +79,7 @@ public class ProviderEventService(
ClientName = client.OrganizationName,
PlanName = client.Plan,
AssignedSeats = client.Seats ?? 0,
UsedSeats = client.UserCount,
UsedSeats = client.OccupiedSeats ?? 0,
Total = client.Plan == enterprisePlan.Name
? (client.Seats ?? 0) * discountedEnterpriseSeatPrice
: (client.Seats ?? 0) * discountedTeamsSeatPrice