mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -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;
|
$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