mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Use count on availSeats
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
e84ba0c7a0
commit
a8a3ca3624
|
@ -236,7 +236,7 @@ class LicensesController extends Controller
|
||||||
$license = License::with('assignedusers')->find($licenseId);
|
$license = License::with('assignedusers')->find($licenseId);
|
||||||
$users_count = User::where('autoassign_licenses', '1')->count();
|
$users_count = User::where('autoassign_licenses', '1')->count();
|
||||||
$total_seats_count = $license->totalSeatsByLicenseID();
|
$total_seats_count = $license->totalSeatsByLicenseID();
|
||||||
$available_seats_count = $license->availableSeats();
|
$available_seats_count = $license->availableSeats()->count();
|
||||||
$checkedout_seats_count = ($total_seats_count - $available_seats_count);
|
$checkedout_seats_count = ($total_seats_count - $available_seats_count);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue