Commit 27f646c2 authored by Hugo LEVY-FALK's avatar Hugo LEVY-FALK

Afficher le bon prix c'est encore mieux

parent 53221426
......@@ -29,7 +29,7 @@ def accept_payment(request, factureid):
messages.success(
request,
_("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
......
......@@ -35,11 +35,13 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<form class="form" method="post">
{% csrf_token %}
<h3>{% trans "New invoice" %}</h3>
{% if user.solde %}
<p>
{% blocktrans %}
User's balance : {{ user.solde }} €
{% endblocktrans %}
</p>
{% endif %}
{% bootstrap_form factureform %}
{{ venteform.management_form }}
<!-- 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 %}
<h3>
{% blocktrans %}
Refill of {{ amount }} €
Pay {{ amount }} €
{% endblocktrans %}
</h3>
<form class="form" method="{{ method }}" action="{{ action }}">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment