Update method name

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-08-02 19:12:18 -07:00
parent 254ce72415
commit 8e18ce74b2
2 changed files with 2 additions and 2 deletions

View file

@ -789,7 +789,7 @@ class ReportsController extends Controller
if ($request->filled('warranty')) {
$row[] = ($asset->warranty_months) ? $asset->warranty_months : '';
$row[] = $asset->present()->warrantee_expires();
$row[] = $asset->present()->warranty_expires();
}
if ($request->filled('depreciation')) {

View file

@ -501,7 +501,7 @@ class AssetPresenter extends Presenter
* Date the warantee expires.
* @return false|string
*/
public function warrantee_expires()
public function warranty_expires()
{
if (($this->purchase_date) && ($this->warranty_months)) {
$date = date_create($this->purchase_date);