depreciation value rounding

This commit is contained in:
Minaev Dmitriy 2018-08-25 20:18:31 +03:00
parent daba90b346
commit 40dd34b5bf

View file

@ -114,7 +114,7 @@ class Depreciable extends SnipeModel
else if($yearsPast < 0) {
$yearsPast = 0;
}
return $yearsPast / $deprecationYears * $this->purchase_cost;
return round($yearsPast / $deprecationYears * $this->purchase_cost, 2);
}
/**