mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Merge pull request #13207 from Godmartinz/half_year_dep_fix
adds half_year fix from jdickerson71388
This commit is contained in:
commit
4278471d81
|
@ -127,7 +127,7 @@ class Depreciable extends SnipeModel
|
|||
$yearsPast = 0;
|
||||
}
|
||||
|
||||
return round($yearsPast / $deprecationYears * $this->purchase_cost, 2);
|
||||
return $this->purchase_cost - round($yearsPast / $deprecationYears * $this->purchase_cost, 2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue