A free open source IT asset/license management system
adds half_year fix from jdickerson71388
Godfrey M114d946437f6
diff --git a/app/Models/Depreciable.php b/app/Models/Depreciable.phpindex 250894820c..9bbf4fcbf8 100644--- a/app/Models/Depreciable.php+++ b/app/Models/Depreciable.php@@ -127,7 +127,7 @@ class Depreciable extends SnipeModel$yearsPast = 0;}- return round($yearsPast / $deprecationYears * $this->purchase_cost, 2);+ return $this->purchase_cost - round($yearsPast / $deprecationYears * $this->purchase_cost, 2);}/**