Browse Source

Afficher le bon prix c'est encore mieux

design-preferences
Hugo LEVY-FALK 8 years ago
parent
commit
48d4c6f55e
  1. 2
      cotisations/payment.py
  2. 2
      cotisations/templates/cotisations/new_facture.html
  3. 2
      cotisations/templates/cotisations/payment.html

2
cotisations/payment.py

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

2
cotisations/templates/cotisations/new_facture.html

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

2
cotisations/templates/cotisations/payment.html

@ -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…
Cancel
Save