Improve accounting ease of use

This commit is contained in:
Skia
2016-06-24 19:43:11 +02:00
parent ace58f54b5
commit 1396f2ca84
8 changed files with 79 additions and 24 deletions

View File

@ -1,13 +0,0 @@
{% extends "core/base.jinja" %}
{% block content %}
<h2>Edit account</h2>
<form action="" method="post">
{% csrf_token %}
{{ form.as_p() }}
<p><input type="submit" value="Save!" /></p>
</form>
{% endblock %}

View File

@ -11,7 +11,7 @@
<li>{{ k }} - {{ v }}</li>
{% endfor %}
</ul>
<p><a href="{{ url('accounting:club_new') }}">New club account</a></p>
<p><a href="{{ url('accounting:club_new') }}?parent={{ object.id }}">New club account</a></p>
<ul>
{% for c in object.club_accounts.all() %}
<li><a href="{{ url('accounting:club_details', c_account_id=c.id) }}">{{ c }}</a> -

View File

@ -11,7 +11,7 @@
<li>{{ k }} - {{ v }}</li>
{% endfor %}
</ul>
<p><a href="{{ url('accounting:journal_new') }}">New journal</a></p>
<p><a href="{{ url('accounting:journal_new') }}?parent={{ object.id }}">New journal</a></p>
<ul>
{% for j in object.journals.all() %}
<li>

View File

@ -8,7 +8,7 @@
{{ object.name }}
</p>
<p><strong>Amount: </strong>{{ object.amount }} € - <strong>Effective amount: </strong>{{ object.effective_amount }} €</p>
<p><a href="{{ url('accounting:op_new') }}">New operation</a></p>
<p><a href="{{ url('accounting:op_new') }}?parent={{ object.id }}">New operation</a></p>
<table>
<tr>
<td>Nb</td>