Skip to content

Commit

Permalink
Display bugfixes for #819
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Jul 9, 2015
1 parent 84ffc1a commit 4a50660
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 12 deletions.
4 changes: 2 additions & 2 deletions app/config/version.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
'app_version' => 'v1.2.8-143',
'hash_version' => 'v1.2.8-143-g1edce0a',
'app_version' => 'v1.2.8-149',
'hash_version' => 'v1.2.8-149-g74429d9',
);
1 change: 1 addition & 0 deletions app/lang/en/admin/locations/table.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@
'zip' => 'Postal Code',
'locations' => 'Locations',
'parent' => 'Parent',
'currency' => 'Location Currency', // this is deprecated
);
1 change: 0 additions & 1 deletion app/models/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ public function assetloc()

}


/**
* Get the asset's location based on default RTD location
**/
Expand Down
2 changes: 1 addition & 1 deletion app/views/backend/hardware/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
<div class="col-md-2">
<div class="input-group">
<span class="input-group-addon">
@if ($asset->id)
@if (($asset->id) && ($asset->assetloc))
{{{ $asset->assetloc->currency }}}
@else
{{{ Setting::first()->default_currency }}}
Expand Down
7 changes: 6 additions & 1 deletion app/views/backend/hardware/view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,12 @@

@if ($asset->purchase_cost)
<div class="col-md-12" style="padding-bottom: 5px;"><strong>@lang('admin/hardware/form.cost'):</strong>
{{{ $asset->assetloc->currency }}}
@if (($asset->id) && ($asset->assetloc))
{{{ $asset->assetloc->currency }}}
@else
{{{ Setting::first()->default_currency }}}
@endif

{{{ number_format($asset->purchase_cost,2) }}} </div>
@endif

Expand Down
2 changes: 1 addition & 1 deletion app/views/backend/locations/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<!-- Currency -->
<div class="form-group {{ $errors->has('currency') ? ' has-error' : '' }}">
<label for="currency" class="col-md-2 control-label">
@lang('admin/locations/table.address')
@lang('admin/locations/table.currency')
</label>
<div class="col-md-12">
<div class="col-xs-8">
Expand Down
11 changes: 5 additions & 6 deletions app/views/backend/reports/depreciation.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,11 @@
@endif
</td>
<td>
@if (isset($asset->assigned_to))
@if (($asset->assigned_to > 0) && ($asset->assigneduser->location_id > 0)) {{{ Location::find($asset->assigneduser->location_id)->city }}}
,
{{{ Location::find($asset->assigneduser->location_id)->state }}}
@endif
@endif
@if ($asset->assetloc)
{{{ $asset->assetloc->name }}}
@elseif ($asset->defaultloc)
{{{ $asset->defaultloc->name }}}
@endif
</td>
<td>{{{ $asset->purchase_date }}}</td>

Expand Down

0 comments on commit 4a50660

Please sign in to comment.