2016-04-20 01:01:14 +00:00
|
|
|
{% extends "core/base.jinja" %}
|
|
|
|
|
|
|
|
{% block content %}
|
2016-07-19 17:03:16 +00:00
|
|
|
<p>
|
|
|
|
<a href="{{ url('accounting:bank_list') }}">{% trans %}Accounting{% endtrans %}</a> >
|
|
|
|
<a href="{{ url('accounting:bank_details', b_account_id=object.bank_account.id) }}">{{object.bank_account }}</a> >
|
|
|
|
{{ object }}
|
|
|
|
<h2>{% trans %}View account:{% endtrans %} {{ object.name }}</h2>
|
2016-04-20 01:01:14 +00:00
|
|
|
<ul>
|
2016-07-19 17:03:16 +00:00
|
|
|
{% for k,v in object.__dict__.items() %}
|
2016-04-20 01:01:14 +00:00
|
|
|
<li>{{ k }} - {{ v }}</li>
|
2016-07-19 17:03:16 +00:00
|
|
|
{% endfor %}
|
2016-04-20 01:01:14 +00:00
|
|
|
</ul>
|
2016-06-24 19:55:52 +00:00
|
|
|
{% if not object.has_open_journal() %}
|
2016-07-19 17:03:16 +00:00
|
|
|
<p><a href="{{ url('accounting:journal_new') }}?parent={{ object.id }}">{% trans %}New journal{% endtrans %}</a></p>
|
2016-06-24 19:55:52 +00:00
|
|
|
{% else %}
|
2016-07-19 17:03:16 +00:00
|
|
|
<p>{% trans %}You can not create new journal while you still have one opened{% endtrans %}</p>
|
2016-06-24 19:55:52 +00:00
|
|
|
{% endif %}
|
|
|
|
<table>
|
2016-07-20 16:48:18 +00:00
|
|
|
<thead>
|
2016-06-24 19:55:52 +00:00
|
|
|
<tr>
|
2016-07-19 17:03:16 +00:00
|
|
|
<td>{% trans %}Name{% endtrans %}</td>
|
|
|
|
<td>{% trans %}Start{% endtrans %}</td>
|
|
|
|
<td>{% trans %}End{% endtrans %}</td>
|
|
|
|
<td>{% trans %}Amount{% endtrans %}</td>
|
|
|
|
<td>{% trans %}Effective amount{% endtrans %}</td>
|
|
|
|
<td>{% trans %}Closed{% endtrans %}</td>
|
2016-07-20 16:48:18 +00:00
|
|
|
<td>{% trans %}Actions{% endtrans %}</td>
|
2016-06-24 19:55:52 +00:00
|
|
|
</tr>
|
2016-07-20 16:48:18 +00:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2016-07-19 17:03:16 +00:00
|
|
|
{% for j in object.journals.all() %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ j.name }}</td>
|
|
|
|
<td>{{ j.start_date }}</td>
|
|
|
|
{% if j.end_date %}
|
2016-06-24 19:55:52 +00:00
|
|
|
<td>{{ j.end_date }}</td>
|
2016-07-19 17:03:16 +00:00
|
|
|
{% else %}
|
2016-06-24 19:55:52 +00:00
|
|
|
<td> - </td>
|
2016-07-19 17:03:16 +00:00
|
|
|
{% endif %}
|
|
|
|
<td>{{ j.amount }} €</td>
|
|
|
|
<td>{{ j.effective_amount }} €</td>
|
|
|
|
{% if j.closed %}
|
|
|
|
<td>{% trans %}Yes{% endtrans %}</td>
|
|
|
|
{% else %}
|
|
|
|
<td>{% trans %}No{% endtrans %}</td>
|
|
|
|
{% endif %}
|
|
|
|
<td> <a href="{{ url('accounting:journal_details', j_id=j.id) }}">{% trans %}View{% endtrans %}</a>
|
|
|
|
<a href="{{ url('accounting:journal_edit', j_id=j.id) }}">{% trans %}Edit{% endtrans %}</a> </td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
2016-07-20 16:48:18 +00:00
|
|
|
</tbody>
|
2016-06-24 19:55:52 +00:00
|
|
|
</table>
|
2016-04-20 01:01:14 +00:00
|
|
|
{% endblock %}
|