Hide reconcile button #1032

This commit is contained in:
James Cole 2017-12-03 09:01:39 +01:00
parent f300c66143
commit 7158dfe29a
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 7 additions and 2 deletions

View File

@ -85,7 +85,12 @@
<h3 class="box-title">{{ 'transactions'|_ }}</h3>
</div>
<div class="box-body">
{% include 'list.journals' with {sorting:true, hideBills:true, hideBudgets: true, hideCategories: true, showReconcile: true} %}
{% if account.accountType.type == 'Asset account' %}
{% set showReconcile = true %}
{% else %}
{% set showReconcile = false %}
{% endif %}
{% include 'list.journals' with {sorting:true, hideBills:true, hideBudgets: true, hideCategories: true, showReconcile: showReconcile} %}
{% if periods.count > 0 %}
<p>
<i class="fa fa-calendar"></i>

View File

@ -10,7 +10,7 @@
<th data-defaultsign="_19">{{ trans('list.currentBalance') }}</th>
<th class="hidden-sm hidden-xs">{{ trans('list.active') }}</th>
<th data-defaultsign="month" class="hidden-sm hidden-xs hidden-md">{{ trans('list.lastActivity') }}</th>
<th data-defaultsign="_19"
<th data-defaultsign="_19" style="width:15%;"
class="hidden-sm hidden-xs hidden-md">{{ trans('list.balanceDiff', {'start' : Session.get('start').formatLocalized(monthAndDayFormat),'end' : Session.get('end').formatLocalized(monthAndDayFormat)}) }}</th>
</tr>
</thead>