Skip to content

A free open source IT asset/license management system

One more quick fix for consumables qty percent

snipec90acf53d561
diff --git a/app/Models/Consumable.php b/app/Models/Consumable.php
index 282408daca..66ff35e39e 100644
--- a/app/Models/Consumable.php
+++ b/app/Models/Consumable.php
@@ -171,7 +171,7 @@ class Consumable extends SnipeModel
}
if (($this->qty == '') || ($this->qty == 0)) {
- return 1;
+ return 0;
}
return ($this->qty - $this->consumables_users_count) / $this->qty * 100;