A free open source IT asset/license management system
Formatting
snipe9406b600f90c
diff --git a/app/Models/Accessory.php b/app/Models/Accessory.phpindex d792d1f58f..23593af53c 100755--- a/app/Models/Accessory.php+++ b/app/Models/Accessory.php@@ -276,6 +276,7 @@ class Accessory extends SnipeModelif ($this->checkouts_count == 0) {return 100;}+return ($this->qty - $this->checkouts_count) / $this->qty * 100;}diff --git a/app/Presenters/AccessoryPresenter.php b/app/Presenters/AccessoryPresenter.phpindex dc1e86e49b..3e46c693d6 100644--- a/app/Presenters/AccessoryPresenter.php+++ b/app/Presenters/AccessoryPresenter.php@@ -115,7 +115,7 @@ class AccessoryPresenter extends Presenter'searchable' => false,'sortable' => false,'switchable' => true,- 'title' => '% ' . trans('general.remaining'),+ 'title' => '% '.trans('general.remaining'),'visible' => true,'formatter' => 'progressBarFormatter',],