96 lines
5.9 KiB
HTML
96 lines
5.9 KiB
HTML
<div class="modal-dialog modal-lg">
|
||
<div class="modal-content" id="reportDeleted">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<button class="btn btn-icon white" ng-click="printElem('#reportDeleted')">
|
||
<i class="fa fa-print"></i>
|
||
</button>
|
||
<h4 class="modal-title">{{globals.currentUser.organization.name}}</h4>
|
||
<h5 class="modal-title">Отчет по удалениям</h5>
|
||
<span class="text-muted">{{start_date}} - {{end_date}}</span>
|
||
</div>
|
||
<div class="modal-body p-lg">
|
||
<div ng-if="report_delete.length > 0">
|
||
<div class="m-b" id="shiftsAccordion">
|
||
<div class="panel box" ng-repeat="reportShift in report_delete">
|
||
<div class="box-header">
|
||
<span class="pull-right label text-sm">Удалено: {{reportShift.totalCount}} позиций. На сумму {{reportShift.totalSum | curr}} BYN</span>
|
||
<a data-toggle="collapse" data-parent="#accordion" data-target="#c_{{reportShift.shift_id}}"
|
||
class="collapsed" aria-expanded="false">
|
||
<h2>Смена №{{reportShift.shift_id}}</h2>
|
||
</a>
|
||
</div>
|
||
<div class="m-b" id="ordersAccordion">
|
||
<div id="c_{{reportShift.shift_id}}" class="panel box collapse" aria-expanded="false">
|
||
<div ng-repeat="reportOrder in reportShift.orders">
|
||
<div id="c_{{reportShift.shift_id}}_{{reportOrder.order_id}}" class="box-header">
|
||
<span class="pull-right label text-sm">Удалено: {{reportOrder.totalCount}} позиций. На сумму {{reportOrder.totalSum | curr}} BYN</span>
|
||
<a data-toggle="collapse" data-parent="#ordersAccordion"
|
||
data-target="#co_{{reportShift.shift_id}}_{{reportOrder.order_id}}"
|
||
class="collapsed" aria-expanded="false">
|
||
<h2>Заказ №{{reportOrder.order_id}}</h2>
|
||
</a>
|
||
</div>
|
||
<div id="co_{{reportShift.shift_id}}_{{reportOrder.order_id}}" class="collapse" aria-expanded="false">
|
||
<div class="box-body">
|
||
<div class="table-responsive-xl">
|
||
<table class="table table-bordered m-0">
|
||
<thead>
|
||
<tr>
|
||
<th>Имя</th>
|
||
<th>Время/Причина</th>
|
||
<th>Товар/цена</th>
|
||
<th>Кол-во</th>
|
||
<th>Итог</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr ng-repeat="item in reportOrder.items">
|
||
<td>{{ item.who }}</td>
|
||
<td>
|
||
<ul class="list-unstyled">
|
||
<li>{{ item.time }}</li>
|
||
<li><small>{{ item.reason }}</small></li>
|
||
</ul>
|
||
</td>
|
||
<td>
|
||
<ul class="list-unstyled">
|
||
<li>{{ item.dish }}</li>
|
||
<li><small>{{ item.price | curr }} BYN</small></li>
|
||
</ul>
|
||
</td>
|
||
<td>{{ item.count }}</td>
|
||
<td>{{ item.total | curr}} BYN</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<table class="table table-bordered">
|
||
<tbody>
|
||
<tr>
|
||
<td>
|
||
<strong>Итого</strong>
|
||
</td>
|
||
<td style="text-align: right">
|
||
<strong>{{ totalCount }}</strong> удалений
|
||
</td>
|
||
<td style="text-align: right">на сумму
|
||
<strong>{{ totalSum | curr }} BYN</strong>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<div ng-if="report_delete.length == 0">
|
||
<p>Удаления отсутствуют</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div> |