added rounding

This commit is contained in:
Godfrey M 2022-02-14 09:34:42 -08:00
parent 6e204a20ca
commit 7b9a2ae909

View file

@ -79,7 +79,7 @@ class Depreciable extends SnipeModel
if($this->get_depreciation()->depreciation_min > $current_value) { if($this->get_depreciation()->depreciation_min > $current_value) {
$current_value=$this->get_depreciation()->depreciation_min; $current_value=round($this->get_depreciation()->depreciation_min,2);
} }
if ($current_value < 0) { if ($current_value < 0) {
$current_value = 0; $current_value = 0;