From a6b961d2ab2bad5294ac60ba10795992c6bb7361 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Delobelle?= Date: Sun, 21 Aug 2016 16:45:25 +0200 Subject: [PATCH] =?UTF-8?q?Texte=20dernier=20relev=C3=A9=20ne=20s'affiche?= =?UTF-8?q?=20pas=20s'il=20n'y=20a=20en=20pas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kfet/templates/kfet/kpsul.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/kfet/templates/kfet/kpsul.html b/kfet/templates/kfet/kpsul.html index c4fddb27..861390ae 100644 --- a/kfet/templates/kfet/kpsul.html +++ b/kfet/templates/kfet/kpsul.html @@ -49,11 +49,7 @@
En caisse:
-
- Dernier relevé:
- € - à - par +
@@ -259,9 +255,17 @@ $(document).ready(function() { 'last_statement_by_first_name': '', 'last_statement_by_last_name' : '' , } + var last_statement_container = $('#last_statement'); + var last_statement_html_default = 'Dernier relevé:
€ à par '; + // Display data function displayCheckoutData() { + if (checkout_data['last_statement_at']) { + last_statement_container.html(last_statement_html_default); + } else { + last_statement_container.html(''); + } for (var elem in checkout_data) { $('#checkout-'+elem).text(checkout_data[elem]); }