Skip to content

A free open source IT asset/license management system

fixed current value formula

Godfrey M6e204a20ca1f
diff --git a/app/Models/Depreciable.php b/app/Models/Depreciable.php
index 181be0ef4f..118a7b8931 100644
--- a/app/Models/Depreciable.php
+++ b/app/Models/Depreciable.php
@@ -75,7 +75,7 @@ class Depreciable extends SnipeModel
$months_remaining = $this->time_until_depreciated()->m + 12 * $this->time_until_depreciated()->y; //UGlY
$months_depreciated=$this->get_depreciation()->months-$months_remaining;
- $current_value = $deprecation_per_month*$months_depreciated;
+ $current_value = $this->purchase_cost-($deprecation_per_month*$months_depreciated);
if($this->get_depreciation()->depreciation_min > $current_value) {