adds half_year fix from jdickerson71388

This commit is contained in:
Godfrey M 2023-06-26 11:26:46 -07:00
parent 49b50d81ee
commit 114d946437

View file

@ -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);
}
/**