mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-25 22:22:26 +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(
|
||||
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 }}">
|
||||
|
|
Loading…
Reference in a new issue