diff --git a/eboutic/templates/eboutic/eboutic_makecommand.jinja b/eboutic/templates/eboutic/eboutic_makecommand.jinja index 82ad4c51..62053af5 100644 --- a/eboutic/templates/eboutic/eboutic_makecommand.jinja +++ b/eboutic/templates/eboutic/eboutic_makecommand.jinja @@ -33,116 +33,116 @@
- {% trans %}Basket amount: {% endtrans %}{{ "%0.2f"|format(basket.total) }} € +
+ {% trans %}Basket amount: {% endtrans %}{{ "%0.2f"|format(basket.total) }} €
- {% if customer_amount != None %}
-
- {% trans %}Current account amount: {% endtrans %}
- {{ "%0.2f"|format(customer_amount) }} €
-
- {% if not basket.contains_refilling_item %}
-
- {% trans %}Remaining account amount: {% endtrans %}
- {{ "%0.2f"|format(customer_amount|float - basket.total) }} €
- {% endif %}
- {% endif %}
-
{% trans %}AE account payment disabled because your basket contains refilling items.{% endtrans %}
+ {% elif basket.total > user.account_balance %} +{% trans %}AE account payment disabled because you do not have enough money remaining.{% endtrans %}
+ {% else %} +