v.2.27
Fixed reports
This commit is contained in:
78
web/views/reports/items/order-info.html
Normal file
78
web/views/reports/items/order-info.html
Normal file
@@ -0,0 +1,78 @@
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content" id="report-order-info">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" ng-click="prevModal('report-order-info', 'report-orders-list')">
|
||||
<i class="material-icons md-24">arrow_back</i>
|
||||
</button>
|
||||
|
||||
<p>
|
||||
Номер заказа: <strong>#{{order_info.order_id}}</strong><br>
|
||||
Время закрытия: <strong>{{order_info.closed}}</strong><br>
|
||||
Персонал: <strong>{{order_info.who_close}}</strong><br>
|
||||
Статус заказа: <span class="label success">{{order_info.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: 140px">Стоимость</th>
|
||||
<th style="width: 180px">Итог</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="item in order_info.items">
|
||||
<td>{{item.id}}</td>
|
||||
<td>{{item.name}}</td>
|
||||
<td>{{item.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="4" class="text-right"><strong>Итого</strong></td>
|
||||
<td>{{order_info.amount | curr}} BYN</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" class="text-right no-border"
|
||||
ng-if="order_info.full_price - order_info.amount > 0">
|
||||
<strong>Сумма скидки</strong></td>
|
||||
<td ng-if="order_info.full_price - order_info.amount > 0">{{order_info.full_price -
|
||||
order_info.amount | curr}} BYN
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="4" class="text-right no-border"><strong>Оплачено:</strong></td>
|
||||
</tr>
|
||||
<tr ng-if="order_info.cash > 0">
|
||||
<td colspan="5" class="text-right no-border">Наличные: <strong>{{order_info.cash
|
||||
| curr}} BYN</strong></td>
|
||||
</tr>
|
||||
<tr ng-if="order_info.credit > 0">
|
||||
<td colspan="5" class="text-right no-border">Кред. карта: <strong>{{order_info.credit | curr}}
|
||||
BYN</strong></td>
|
||||
</tr>
|
||||
<tr ng-if="order_info.clearing > 0">
|
||||
<td colspan="5" class="text-right no-border">Питание штата: <strong>{{order_info.clearing |
|
||||
curr}}
|
||||
BYN</strong>
|
||||
</tr>
|
||||
<tr ng-if="order_info.presale > 0">
|
||||
<td colspan="5" class="text-right no-border">Зачтен аванс: <strong>{{order_info.presale | curr}}
|
||||
BYN</strong></td>
|
||||
</tr>
|
||||
<tr ng-if="order_info.self > 0">
|
||||
<td colspan="5" class="text-right no-border">Безнал: <strong>{{order_info.self | curr}}
|
||||
BYN</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user