From e68d944640ef07d047abe93d6ea1dfbfb874d6dc Mon Sep 17 00:00:00 2001
From: Sli
Date: Sat, 21 Dec 2024 15:15:07 +0100
Subject: [PATCH] Fix customerBalance not init and submit/cancel buttons
visuals
---
counter/templates/counter/counter_click.jinja | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/counter/templates/counter/counter_click.jinja b/counter/templates/counter/counter_click.jinja
index 020f9634..b535952e 100644
--- a/counter/templates/counter/counter_click.jinja
+++ b/counter/templates/counter/counter_click.jinja
@@ -110,8 +110,10 @@
€
-
-
+
+
+
+
{% if object.type == "BAR" %}
@@ -199,6 +201,7 @@
];
window.addEventListener("DOMContentLoaded", () => {
loadCounter({
+ customerBalance: {{ customer.amount }},
products: products,
customerId: {{ customer.pk }},
formInitial: formInitial,