depreciation value rounding
This commit is contained in:
parent
daba90b346
commit
40dd34b5bf
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue