A free open source IT asset/license management system
depreciation value rounding
Minaev Dmitriy40dd34b5bfb1
diff --git a/app/Models/Depreciable.php b/app/Models/Depreciable.phpindex 43ea0af601..bcdd599040 100644--- a/app/Models/Depreciable.php+++ b/app/Models/Depreciable.php@@ -114,7 +114,7 @@ class Depreciable extends SnipeModelelse if($yearsPast < 0) {$yearsPast = 0;}- return $yearsPast / $deprecationYears * $this->purchase_cost;+ return round($yearsPast / $deprecationYears * $this->purchase_cost, 2);}/**