mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-19 12:04:21 -08:00
depreciation value rounding
This commit is contained in:
parent
daba90b346
commit
40dd34b5bf
|
@ -114,7 +114,7 @@ class Depreciable extends SnipeModel
|
||||||
else if($yearsPast < 0) {
|
else if($yearsPast < 0) {
|
||||||
$yearsPast = 0;
|
$yearsPast = 0;
|
||||||
}
|
}
|
||||||
return $yearsPast / $deprecationYears * $this->purchase_cost;
|
return round($yearsPast / $deprecationYears * $this->purchase_cost, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue