mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 04:19:25 +00:00
Implement barman prices and improve counter views
This commit is contained in:
@ -22,7 +22,7 @@
|
||||
<p><strong>Club: </strong> {{ counter.club }}</p>
|
||||
|
||||
<div>
|
||||
<p>Customer: {{ customer }}</p>
|
||||
<p>Customer: {{ customer.user.get_display_name() }}, {{ customer.amount }} €</p>
|
||||
<p>Basket: </p>
|
||||
<ul>
|
||||
{% for id,qte in request.session['basket'].items() %}
|
||||
|
@ -16,6 +16,17 @@
|
||||
|
||||
|
||||
<div>
|
||||
<h3>Sellings</h3>
|
||||
{% if last_basket %}
|
||||
<h4>Last selling: </h4>
|
||||
<p>Client: {{ last_customer }}, new amount: {{ new_customer_amount }} €.</p>
|
||||
<ul>
|
||||
{% for s in last_basket %}
|
||||
<li>{{ s }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<p><strong>Total: {{ last_total }} €</strong></p>
|
||||
{% endif %}
|
||||
{% if barmen %}
|
||||
<p>Enter client code:</p>
|
||||
<form method="post" action="{{ url('counter:details', counter_id=counter.id) }}">
|
||||
|
Reference in New Issue
Block a user