102 lines
6.3 KiB
HTML
102 lines
6.3 KiB
HTML
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" ng-click="backModal('order', 'orders')">
|
|
<i class="material-icons md-24">arrow_back</i>
|
|
</button>
|
|
|
|
<p style="margin-bottom: -0.1rem;">Номер заказа: <strong>#{{order.order_id}}</strong><br></p>
|
|
<p style="margin-bottom: -0.1rem;">Заказ размещен в зале "<strong>{{order.place}}</strong>" на столе №<strong>{{order.table}}</strong><br></p>
|
|
<p style="margin-bottom: -0.1rem;">Время открытия: <strong>{{order.opened}}</strong><br></p>
|
|
<p style="margin-bottom: -0.1rem;" ng-if="order.closed">Время закрытия: <strong>{{order.closed}}</strong><br></p>
|
|
<p style="margin-bottom: -0.1rem;">Заказ открыт пользователем: <strong>{{order.who_open}}</strong><br></p>
|
|
<p style="margin-bottom: -0.1rem;" ng-if="order.who_close">Заказ закрыт пользователем: <strong>{{order.who_close}}</strong><br></p>
|
|
<p style="margin-bottom: -0.1rem;">Статус заказа: <span class="label success">{{order.order_status}}</span><br></p>
|
|
</div>
|
|
<div class="modal-body p-lg">
|
|
<div class="table-responsive">
|
|
<table class="table table-striped white b-a">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Блюдо</th>
|
|
<th style="width: 80px">Кол-во</th>
|
|
<th style="width: 80px" ng-if="order.returned_count > 0">Кол-во возвр.</th>
|
|
<th style="width: 80px" ng-if="order.deleted_count > 0">Кол-во удал.</th>
|
|
<th style="width: 140px">Стоимость</th>
|
|
<th style="width: 180px">Итог</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr ng-repeat="item in order.items">
|
|
<td>{{item.id}}</td>
|
|
<td>{{item.name}}</td>
|
|
<td>{{item.count * item.cof}}</td>
|
|
<td ng-if="order.returned_count > 0">{{item.returned_count * item.cof}}</td>
|
|
<td ng-if="order.deleted_count > 0">{{item.deleted_count * item.cof}}</td>
|
|
<td>{{item.price | curr}} BYN</td>
|
|
<td>{{item.amount | curr}} BYN <p ng-if="item.discount > 0">
|
|
<span>(Скидка: {{item.discount}}%)</span></p></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="{{cols - 1}}" class="text-right">
|
|
<strong ng-if="order.returned_count > 0">Сумма</strong>
|
|
<strong ng-if="order.returned_count == 0">Итого</strong>
|
|
</td>
|
|
<td>{{order.amount | curr}} BYN</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="{{cols - 1}}" class="text-right no-border" ng-if="order.full_price - order.amount > 0">
|
|
<strong>Сумма скидки</strong></td>
|
|
<td ng-if="order.full_price - order.amount > 0">{{order.full_price - order.amount | curr}} BYN
|
|
</td>
|
|
</tr>
|
|
<tr ng-if="order.cash > 0 || order.credit > 0 || order.clearing > 0 || order.presale > 0 || order.self > 0 || order.online > 0">
|
|
<td colspan="{{cols - 1}}" class="text-right no-border"><strong>Оплачено:</strong></td>
|
|
</tr>
|
|
<tr ng-if="order.cash > 0">
|
|
<td colspan="{{cols}}" class="text-right no-border">Наличные: <strong>{{order.cash
|
|
| curr}} BYN</strong></td>
|
|
</tr>
|
|
<tr ng-if="order.credit > 0">
|
|
<td colspan="{{cols}}" class="text-right no-border">Кред. карта: <strong>{{order.credit | curr}}
|
|
BYN</strong></td>
|
|
</tr>
|
|
<tr ng-if="order.clearing > 0">
|
|
<td colspan="{{cols}}" class="text-right no-border">Питание штата: <strong>{{order.clearing | curr}}
|
|
BYN</strong>
|
|
</tr>
|
|
<tr ng-if="order.presale > 0">
|
|
<td colspan="{{cols}}" class="text-right no-border">Зачтен аванс: <strong>{{order.presale | curr}}
|
|
BYN</strong></td>
|
|
</tr>
|
|
<tr ng-if="order.self > 0">
|
|
<td colspan="{{cols}}" class="text-right no-border">Безнал: <strong>{{order.self | curr}} BYN</strong>
|
|
</td>
|
|
</tr>
|
|
<tr ng-if="order.online > 0">
|
|
<td colspan="{{cols}}" class="text-right no-border">Онлайн: <strong>{{order.online | curr}} BYN</strong>
|
|
</td>
|
|
</tr>
|
|
<tr ng-if="order.returned_count > 0">
|
|
<td colspan="{{cols - 1}}" class="text-right"><strong>Возвращено:</strong></td>
|
|
</tr>
|
|
<tr ng-if="order.returned_method.cash > 0">
|
|
<td colspan="{{cols}}" class="text-right no-border">Наличные: <strong>{{order.returned_method.cash
|
|
| curr}} BYN</strong></td>
|
|
</tr>
|
|
<tr ng-if="order.returned_method.credit > 0">
|
|
<td colspan="{{cols}}" class="text-right no-border">Кред. карта: <strong>{{order.returned_method.credit | curr}}
|
|
BYN</strong></td>
|
|
</tr>
|
|
<tr ng-if="order.returned_count > 0">
|
|
<td colspan="{{cols - 1}}" class="text-right"><strong>Итого</strong></td>
|
|
<td>{{order.amount - order.returned_sum | curr}} BYN</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |