8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-09-12 01:03:09 +00:00

Afficher le bon prix c'est encore mieux

This commit is contained in:
Hugo LEVY-FALK 2018-06-17 17:44:38 +02:00
parent 532214263c
commit 27f646c200
3 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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 -->

View file

@ -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 }}">