Implement barman prices and improve counter views

This commit is contained in:
Skia
2016-06-01 01:33:20 +02:00
parent 6c48b7c718
commit ffe2aec980
5 changed files with 44 additions and 21 deletions

View File

@ -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() %}

View File

@ -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) }}">