From 7b9a2ae909a015a07e41c41825a9329c6d89b712 Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Mon, 14 Feb 2022 09:34:42 -0800 Subject: [PATCH] added rounding --- app/Models/Depreciable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Depreciable.php b/app/Models/Depreciable.php index 118a7b8931..fdb8bdcd1a 100644 --- a/app/Models/Depreciable.php +++ b/app/Models/Depreciable.php @@ -79,7 +79,7 @@ class Depreciable extends SnipeModel 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) { $current_value = 0;