mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
adds half_year fix from jdickerson71388
This commit is contained in:
parent
49b50d81ee
commit
114d946437
|
@ -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