mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
added rounding
This commit is contained in:
parent
6e204a20ca
commit
7b9a2ae909
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue