Fix customerBalance not init and submit/cancel buttons visuals

This commit is contained in:
Antoine Bartuccio 2024-12-21 15:15:07 +01:00
parent 244447c57a
commit e68d944640

View File

@ -110,8 +110,10 @@
<strong> €</strong>
</p>
<input type="submit" @click.prevent="finish" value="{% trans %}Finish{% endtrans %}"/>
<input type="submit" @click.prevent="cancel" value="{% trans %}Cancel{% endtrans %}"/>
<div class="row">
<input class="btn btn-blue" type="submit" @click.prevent="finish" value="{% trans %}Finish{% endtrans %}"/>
<input class="btn btn-grey" type="submit" @click.prevent="cancel" value="{% trans %}Cancel{% endtrans %}"/>
</div>
</form>
</div>
{% if object.type == "BAR" %}
@ -199,6 +201,7 @@
];
window.addEventListener("DOMContentLoaded", () => {
loadCounter({
customerBalance: {{ customer.amount }},
products: products,
customerId: {{ customer.pk }},
formInitial: formInitial,