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