mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -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) {
|
||||
$yearsPast = 0;
|
||||
}
|
||||
return $yearsPast / $deprecationYears * $this->purchase_cost;
|
||||
return round($yearsPast / $deprecationYears * $this->purchase_cost, 2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue