2016-09-28 09:07:32 +00:00
|
|
|
{% extends "core/base.jinja" %}
|
|
|
|
{% from 'core/macros.jinja' import user_profile_link %}
|
|
|
|
|
|
|
|
{% block title %}
|
2024-07-23 22:16:31 +00:00
|
|
|
{% trans counter_name=counter %}{{ counter_name }} last operations{% endtrans %}
|
2016-09-28 09:07:32 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
2021-09-25 00:52:13 +00:00
|
|
|
{% block info_boxes %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block nav %}
|
|
|
|
{% endblock %}
|
|
|
|
|
2016-09-28 09:07:32 +00:00
|
|
|
{% block content %}
|
2024-07-23 22:16:31 +00:00
|
|
|
<h3>{% trans counter_name=counter %}{{ counter_name }} last operations{% endtrans %}</h3>
|
|
|
|
<h4>{% trans %}Reloads{% endtrans %}</h4>
|
|
|
|
<table>
|
2016-09-28 09:07:32 +00:00
|
|
|
<thead>
|
2024-07-23 22:16:31 +00:00
|
|
|
<tr>
|
|
|
|
<td>{% trans %}Date{% endtrans %}</td>
|
|
|
|
<td>{% trans %}Barman{% endtrans %}</td>
|
|
|
|
<td>{% trans %}Customer{% endtrans %}</td>
|
|
|
|
<td>{% trans %}Amount{% endtrans %}</td>
|
|
|
|
<td>{% trans %}Payment method{% endtrans %}</td>
|
|
|
|
</tr>
|
2016-09-28 09:07:32 +00:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2024-07-23 22:16:31 +00:00
|
|
|
{% for i in last_refillings %}
|
2016-09-28 09:07:32 +00:00
|
|
|
<tr>
|
2024-07-23 22:16:31 +00:00
|
|
|
<td>{{ i.date|localtime|date(DATETIME_FORMAT) }} - {{ i.date|localtime|time(DATETIME_FORMAT) }}</td>
|
|
|
|
<td><a href="{{ i.operator.get_absolute_url() }}">{{ i.operator.get_display_name() }}</a></td>
|
|
|
|
<td><a href="{{ i.customer.user.get_absolute_url() }}">{{ i.customer.user.get_display_name() }}</a></td>
|
|
|
|
<td>{{ i.amount }} €</td>
|
|
|
|
<td>{{ i.get_payment_method_display() }}</td>
|
|
|
|
<td><a href="{{ url('counter:refilling_delete', refilling_id=i.id) }}">{% trans %}Delete{% endtrans %}</a></td>
|
2016-09-28 09:07:32 +00:00
|
|
|
</tr>
|
2024-07-23 22:16:31 +00:00
|
|
|
{% endfor %}
|
2016-09-28 09:07:32 +00:00
|
|
|
</tbody>
|
2024-07-23 22:16:31 +00:00
|
|
|
</table>
|
2016-09-28 09:07:32 +00:00
|
|
|
|
2024-07-23 22:16:31 +00:00
|
|
|
<h4>{% trans %}Sales{% endtrans %}</h4>
|
|
|
|
<table>
|
2016-09-28 09:07:32 +00:00
|
|
|
<thead>
|
2024-07-23 22:16:31 +00:00
|
|
|
<tr>
|
|
|
|
<td>{% trans %}Date{% endtrans %}</td>
|
|
|
|
<td>{% trans %}Barman{% endtrans %}</td>
|
|
|
|
<td>{% trans %}Customer{% endtrans %}</td>
|
|
|
|
<td>{% trans %}Label{% endtrans %}</td>
|
|
|
|
<td>{% trans %}Quantity{% endtrans %}</td>
|
|
|
|
<td>{% trans %}Total{% endtrans %}</td>
|
|
|
|
<td>{% trans %}Payment method{% endtrans %}</td>
|
|
|
|
</tr>
|
2016-09-28 09:07:32 +00:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2024-07-23 22:16:31 +00:00
|
|
|
{% for i in last_sellings %}
|
2016-09-28 09:07:32 +00:00
|
|
|
<tr>
|
2024-07-23 22:16:31 +00:00
|
|
|
<td>{{ i.date|localtime|date(DATETIME_FORMAT) }} - {{ i.date|localtime|time(DATETIME_FORMAT) }}</td>
|
|
|
|
<td><a href="{{ i.seller.get_absolute_url() }}">{{ i.seller.get_display_name() }}</a></td>
|
|
|
|
<td><a href="{{ i.customer.user.get_absolute_url() }}">{{ i.customer.user.get_display_name() }}</a></td>
|
|
|
|
<td>{{ i.label }}</td>
|
|
|
|
<td>{{ i.quantity }}</td>
|
|
|
|
<td>{{ i.quantity * i.unit_price }} €</td>
|
|
|
|
<td>{{ i.get_payment_method_display() }}</td>
|
|
|
|
<td><a href="{{ url('counter:selling_delete', selling_id=i.id) }}?next={{ url('counter:details',
|
|
|
|
counter_id=counter.id) }}">{% trans %}Delete{% endtrans %}</a></td>
|
2016-09-28 09:07:32 +00:00
|
|
|
</tr>
|
2024-07-23 22:16:31 +00:00
|
|
|
{% endfor %}
|
2016-09-28 09:07:32 +00:00
|
|
|
</tbody>
|
2024-07-23 22:16:31 +00:00
|
|
|
</table>
|
2016-09-28 09:07:32 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
|