mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
parent
96716626c6
commit
bf8fe316df
|
@ -476,7 +476,7 @@ class Helper
|
||||||
$all_count = 0;
|
$all_count = 0;
|
||||||
|
|
||||||
foreach ($consumables as $consumable) {
|
foreach ($consumables as $consumable) {
|
||||||
$avail = $consumable->qty - $consumable->consumable_assignment_count; //$consumable->numRemaining();
|
$avail = $consumable->numRemaining();
|
||||||
if ($avail < ($consumable->min_amt) + \App\Models\Setting::getSettings()->alert_threshold) {
|
if ($avail < ($consumable->min_amt) + \App\Models\Setting::getSettings()->alert_threshold) {
|
||||||
if ($consumable->qty > 0) {
|
if ($consumable->qty > 0) {
|
||||||
$percent = number_format((($avail / $consumable->qty) * 100), 0);
|
$percent = number_format((($avail / $consumable->qty) * 100), 0);
|
||||||
|
|
Loading…
Reference in a new issue