77 lines
5.5 KiB
HTML
77 lines
5.5 KiB
HTML
<div class="modal-dialog modal-lg">
|
||
<div class="modal-content" id="ordersInfo">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal" ng-click="closeModal('ordersInfo')">×
|
||
</button>
|
||
<h6 class="modal-title" ng-if="place_id">{{place_name}} стол №{{place_id}}</h6>
|
||
<h6 class="modal-title" ng-if="deleted_info">Подробнее об удаленных</h6>
|
||
<h6 class="modal-title" ng-if="discount_info">Подробнее о заказах со скидками</h6>
|
||
<h6 class="modal-title" ng-if="!place_id && !guests_info && !deleted_info && !discount_info">Подробнее о выручке <span ng-if="staff_name"> {{staff_name}}</span>
|
||
</h6>
|
||
<h6 class="modal-title" ng-if="!place_id && !deleted_info && !discount_info && guests_info">Подробнее о заказах гостей</h6>
|
||
<p class="modal-title">Отложено заказов: {{waited_count}} на сумму {{waited_sum | curr}} BYN</p>
|
||
<p class="modal-title">Закрыто заказов: {{closed_count}} на сумму {{closed_sum | curr}} BYN</p>
|
||
<p class="modal-title">Аннулировано заказов: {{cancellations_count}} на сумму {{cancellations_sum |
|
||
curr}}BYN</p>
|
||
<p class="modal-title">Удалено товаров: {{deleted_count}} на сумму {{deleted_sum | curr}} BYN</p>
|
||
<p class="modal-title">Возвращено товаров: {{returned_count}} на сумму {{returned_sum | curr}} BYN</p>
|
||
|
||
</div>
|
||
<div class="modal-body p-lg"
|
||
ng-if="(waited_count + closed_count + deleted_count + returned_count + cancellations_count) > 0">
|
||
<table id="{{ 'tableOrders_' + type }}" class="table table-bordered table-striped table-hover datatable"
|
||
ui-jq="dataTable" ui-options="dataTablesOpt" ng-style="{'width': 'inherit'}">
|
||
<thead>
|
||
<tr>
|
||
<th ng-style="{'width':'70px', 'text-align':'right'}">#</th>
|
||
<th ng-style="{ 'display' : (guests_info) ? 'revert' : 'none', 'width':'118px', 'text-align':'right'}">
|
||
Гость
|
||
</th>
|
||
<th ng-style="{'width':'198px', 'text-align':'right'}">Статус</th>
|
||
<th ng-style="{'width':'210px', 'text-align':'right'}">Открыт</th>
|
||
<th ng-style="{'width':'210px', 'text-align':'right'}">Закрыт</th>
|
||
<th ng-style="{'display' : (discount_info) ? 'revert' : 'none', 'width':'140px', 'text-align':'right'}">Сумма, BYN</th>
|
||
<th ng-style="{'display' : (discount_info) ? 'revert' : 'none', 'width':'140px', 'text-align':'right'}">Скидка, BYN</th>
|
||
<th ng-style="{'display' : (!deleted_info) ? 'revert' : 'none', 'width':'140px', 'text-align':'right'}">Итого, BYN</th>
|
||
<th ng-style="{'display' : (deleted_info) ? 'revert' : 'none', 'width':'140px', 'text-align':'right'}">Сумма удалений, BYN</th>
|
||
</tr>
|
||
|
||
</thead>
|
||
|
||
<tbody>
|
||
<tr ng-repeat="order in orders" sglclick="getOrderInfo(order.id, order.opened, order.closed)">
|
||
<td>{{ order.id }}</td>
|
||
<td style="text-align: right" ng-style="{ 'display' : (guests_info) ? 'revert' : 'none' }">{{
|
||
order.client_name }}
|
||
</td>
|
||
<td style="text-align: right">
|
||
<p style="margin-bottom: 0;">{{ order.status }}
|
||
<button
|
||
type="button"
|
||
class="btn btn-outline-danger btn-sm"
|
||
data-toggle="popover"
|
||
data-placement="right"
|
||
data-html="true"
|
||
data-content={{order.title}}
|
||
ng-if="order.is_printed_before_edit || order.hasMove || order.hasMerge || order.hasSlice || order.hasDelete"
|
||
onmouseenter="$(this).popover('show')"
|
||
onmouseleave="$(this).popover('hide')">
|
||
‼️
|
||
</button>
|
||
<br>
|
||
<small>Предчеков: {{order.preCheck_count}}</small>
|
||
</p>
|
||
</td>
|
||
<td style="text-align: right">{{ order.opened }} {{ order.who_open }}</td>
|
||
<td style="text-align: right" ng-if="order.closed">{{ order.closed }} {{ order.who_close }}</td>
|
||
<td style="text-align: right" ng-if="!order.closed">-</td>
|
||
<td style="text-align: right" ng-style="{ 'display' : (discount_info) ? 'revert' : 'none' }">{{ order.full_sum | curr}}</td>
|
||
<td style="text-align: right" ng-style="{ 'display' : (discount_info) ? 'revert' : 'none' }">{{ order.sale_sum | curr}}</td>
|
||
<td style="text-align: right" ng-style="{ 'display' : (!deleted_info) ? 'revert' : 'none' }">{{ order.sum | curr}}</td>
|
||
<td style="text-align: right" ng-style="{ 'display' : (deleted_info) ? 'revert' : 'none' }">{{ order.deleted_items_sum | curr}}</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div> |