From 6f6ad123afbcdb64d7ff35f5612c43af3d315fcf Mon Sep 17 00:00:00 2001 From: klmp200 Date: Thu, 24 Aug 2017 00:14:36 +0200 Subject: [PATCH] Allow disabling CB in crisis time --- eboutic/templates/eboutic/eboutic_makecommand.jinja | 2 ++ sith/settings.py | 1 + 2 files changed, 3 insertions(+) diff --git a/eboutic/templates/eboutic/eboutic_makecommand.jinja b/eboutic/templates/eboutic/eboutic_makecommand.jinja index f60986ce..aed01ae6 100644 --- a/eboutic/templates/eboutic/eboutic_makecommand.jinja +++ b/eboutic/templates/eboutic/eboutic_makecommand.jinja @@ -28,12 +28,14 @@

Total: {{ basket.get_total() }} €

+ {% if settings.SITH_EBOUTIC_CB_ENABLED %}
{% for (field_name,field_value) in et_request.items() -%} {% endfor %}
+ {% endif %} {% if basket.items.filter(type_id=settings.SITH_COUNTER_PRODUCTTYPE_REFILLING).exists() %}

{% trans %}AE account payment disabled because your basket contains refilling items.{% endtrans %}

{% else %} diff --git a/sith/settings.py b/sith/settings.py index abfed0ed..5d53c6ea 100644 --- a/sith/settings.py +++ b/sith/settings.py @@ -526,6 +526,7 @@ SITH_LAST_OPERATIONS_LIMIT = 10 SITH_COUNTER_MINUTE_INACTIVE = 10 # ET variables +SITH_EBOUTIC_CB_ENABLED = True SITH_EBOUTIC_ET_URL = "https://preprod-tpeweb.e-transactions.fr/cgi/MYchoix_pagepaiement.cgi" SITH_EBOUTIC_PBX_SITE = "4000666" SITH_EBOUTIC_PBX_RANG = "42"