Merge branch 'develop'
This commit is contained in:
commit
a083cdba18
1 changed files with 1 additions and 5 deletions
|
@ -473,7 +473,7 @@ class ReportsController extends Controller
|
||||||
$header[] = trans('admin/hardware/table.purchase_date');
|
$header[] = trans('admin/hardware/table.purchase_date');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($request->has('purchase_cost')) {
|
if (($request->has('purchase_cost')) || ($request->has('depreciation'))) {
|
||||||
$header[] = trans('admin/hardware/table.purchase_cost');
|
$header[] = trans('admin/hardware/table.purchase_cost');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -515,7 +515,6 @@ class ReportsController extends Controller
|
||||||
$header[] = 'Warranty Expires';
|
$header[] = 'Warranty Expires';
|
||||||
}
|
}
|
||||||
if ($request->has('depreciation')) {
|
if ($request->has('depreciation')) {
|
||||||
$header[] = 'Purchase Cost';
|
|
||||||
$header[] = 'Value';
|
$header[] = 'Value';
|
||||||
$header[] = 'Diff';
|
$header[] = 'Diff';
|
||||||
}
|
}
|
||||||
|
@ -686,9 +685,6 @@ class ReportsController extends Controller
|
||||||
$row[] = $asset->present()->warrantee_expires();
|
$row[] = $asset->present()->warrantee_expires();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($request->has('purchase_cost')) {
|
|
||||||
$row[] = ($asset->purchase_cost!='') ? Helper::formatCurrencyOutput($asset->purchase_cost) : '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($request->has('depreciation')) {
|
if ($request->has('depreciation')) {
|
||||||
$depreciation = $asset->getDepreciatedValue();
|
$depreciation = $asset->getDepreciatedValue();
|
||||||
|
|
Loading…
Add table
Reference in a new issue