Link closing balances on account transactions report
This commit is contained in:
parent
0a8e982bf9
commit
bf4cc42533
@ -136,18 +136,21 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% if account %}
|
{% if account %}
|
||||||
|
{% set nextlink = '/transactions?' + {'date_beg': (date_end + timedelta(days=1)).strftime('%Y-%m-%d'), 'date_end': date_end.replace(year=date_end.year+1).strftime('%Y-%m-%d'), 'account': account.name, 'cash': 'on' if cash else ''}|urlencode %}
|
||||||
<tr class="total trn-first trn-last">
|
<tr class="total trn-first trn-last">
|
||||||
<td>{{ date_end.strftime('%Y-%m-%d') }}</td>
|
<td><a href="{{ nextlink }}">{{ date_end.strftime('%Y-%m-%d') }}</a></td>
|
||||||
<td>Closing Balance</td>
|
<td><a href="{{ nextlink }}">Closing Balance</a></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td style="text-align: right;"></td>
|
<td style="text-align: right;"></td>
|
||||||
<td style="text-align: right;"></td>
|
<td style="text-align: right;"></td>
|
||||||
<td style="text-align: right;">
|
<td style="text-align: right;">
|
||||||
|
<a href="{{ nextlink }}">
|
||||||
{% if closing_balance >= 0 %}
|
{% if closing_balance >= 0 %}
|
||||||
{{ closing_balance|b }} Dr
|
{{ closing_balance|b }} Dr
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ -closing_balance|b }} Cr
|
{{ -closing_balance|b }} Cr
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -88,10 +88,11 @@
|
|||||||
{% set ns.balance = ns.balance.clean() %}
|
{% set ns.balance = ns.balance.clean() %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
{% set nextlink = '/transactions?' + {'date_beg': (date_end + timedelta(days=1)).strftime('%Y-%m-%d'), 'date_end': date_end.replace(year=date_end.year+1).strftime('%Y-%m-%d'), 'account': account.name, 'cash': 'on' if cash else ''}|urlencode %}
|
||||||
{% for amount in closing_balance.amounts %}
|
{% for amount in closing_balance.amounts %}
|
||||||
<tr class="total explicit-rules{% if loop.first %} trn-first{% endif %}{% if loop.last %} trn-last{% endif %}" style="{% if loop.first %}border-top: 1pt solid black;{% endif %}{% if loop.last %}border-bottom: 1pt solid black;{% endif %}">
|
<tr class="total explicit-rules{% if loop.first %} trn-first{% endif %}{% if loop.last %} trn-last{% endif %}" style="{% if loop.first %}border-top: 1pt solid black;{% endif %}{% if loop.last %}border-bottom: 1pt solid black;{% endif %}">
|
||||||
<td>{% if loop.first %}{{ date_end.strftime('%Y-%m-%d') }}{% endif %}</td>
|
<td>{% if loop.first %}<a href="{{ nextlink }}">{{ date_end.strftime('%Y-%m-%d') }}</a>{% endif %}</td>
|
||||||
<td>{% if loop.first %}Closing Balance{% endif %}</td>
|
<td>{% if loop.first %}<a href="{{ nextlink }}">Closing Balance</a>{% endif %}</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
|
Reference in New Issue
Block a user