mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-30 16:42:25 +00:00
Afficher le bon prix c'est encore mieux
This commit is contained in:
parent
532214263c
commit
27f646c200
3 changed files with 4 additions and 2 deletions
|
@ -29,7 +29,7 @@ def accept_payment(request, factureid):
|
||||||
messages.success(
|
messages.success(
|
||||||
request,
|
request,
|
||||||
_("The payment of %(amount)s € has been accepted.") % {
|
_("The payment of %(amount)s € has been accepted.") % {
|
||||||
'amount': invoice.prix()
|
'amount': invoice.prix_total()
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
# In case a cotisation was bought, inform the user, the
|
# In case a cotisation was bought, inform the user, the
|
||||||
|
|
|
@ -35,11 +35,13 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
<form class="form" method="post">
|
<form class="form" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<h3>{% trans "New invoice" %}</h3>
|
<h3>{% trans "New invoice" %}</h3>
|
||||||
|
{% if user.solde %}
|
||||||
<p>
|
<p>
|
||||||
{% blocktrans %}
|
{% blocktrans %}
|
||||||
User's balance : {{ user.solde }} €
|
User's balance : {{ user.solde }} €
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</p>
|
</p>
|
||||||
|
{% endif %}
|
||||||
{% bootstrap_form factureform %}
|
{% bootstrap_form factureform %}
|
||||||
{{ venteform.management_form }}
|
{{ venteform.management_form }}
|
||||||
<!-- TODO: FIXME to include data-type="check" for right option in id_cheque select -->
|
<!-- TODO: FIXME to include data-type="check" for right option in id_cheque select -->
|
||||||
|
|
|
@ -32,7 +32,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h3>
|
<h3>
|
||||||
{% blocktrans %}
|
{% blocktrans %}
|
||||||
Refill of {{ amount }} €
|
Pay {{ amount }} €
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</h3>
|
</h3>
|
||||||
<form class="form" method="{{ method }}" action="{{ action }}">
|
<form class="form" method="{{ method }}" action="{{ action }}">
|
||||||
|
|
Loading…
Reference in a new issue