This commit is contained in:
5quirrel 2018-07-13 09:15:12 +09:30 committed by snipe
parent 96716626c6
commit bf8fe316df

View file

@ -476,7 +476,7 @@ class Helper
$all_count = 0;
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 ($consumable->qty > 0) {
$percent = number_format((($avail / $consumable->qty) * 100), 0);