125 lines
6.6 KiB
HTML
125 lines
6.6 KiB
HTML
<div class="modal-dialog modal-lg" style="min-width: 390px; max-width: 1300px">
|
|
<div class="modal-content" id="reportMerged">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<button class="btn btn-icon white" ng-click="printElem('#reportMerged')">
|
|
<i class="fa fa-print"></i>
|
|
</button>
|
|
<h4 class="modal-title">{{globals.currentUser.organization.name}}</h4>
|
|
<h5 class="modal-title">Отчет по объединениям</h5>
|
|
<h5 class="modal-title">Смена №{{report_merge.shift_id}}</h5>
|
|
<span class="text-muted">{{start_date}} - {{end_date}}</span>
|
|
|
|
</div>
|
|
<div class="modal-body p-lg">
|
|
<div class="table-responsive" ng-if="report_merge.count > 0">
|
|
|
|
<div class="row" ng-repeat="report in report_merge" style="margin-left: 0px; margin-right: 0px;">
|
|
<hr/>
|
|
<div class="col-md-4">
|
|
<div class="box">
|
|
<div class="box-header">
|
|
<h2>Исходный заказ объединения #{{ report.start_order }}</h2>
|
|
<small>{{ report.start_order_place }}</small>
|
|
<small> - </small>
|
|
<small> - </small>
|
|
</div>
|
|
<div class="box-divider m-0"></div>
|
|
<table class="table table-striped b-t">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>Товар</th>
|
|
<th>Кол-во</th>
|
|
<th>Итог</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr ng-repeat="item in report.merge_order_items.before.items">
|
|
<td>{{$index + 1}}</td>
|
|
<td>{{ item.name }}</td>
|
|
<td>{{ item.count.replace(",", ".") }}</td>
|
|
<td>{{ (parseFloat(item.sale_price.replace(",", "."))) * (parseFloat(item.count.replace(",", "."))) | curr }}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="box">
|
|
<div class="box-header">
|
|
<h2>Исходный заказ объединения #{{ report.end_order}}</h2>
|
|
<small>{{ report.end_order_place }}</small>
|
|
<small> - </small>
|
|
<small> - </small>
|
|
</div>
|
|
<table class="table table-striped b-t">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>Товар</th>
|
|
<th>Кол-во</th>
|
|
<th>Итог</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr ng-repeat="item in report.items">
|
|
<td>{{$index + 1}}</td>
|
|
<td>{{ item.name }}</td>
|
|
<td>{{ item.count.replace(",", ".") }}</td>
|
|
<td>{{ (parseFloat(item.sale_price.replace(",", "."))) * (parseFloat(item.count.replace(",", "."))) | curr }}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="box">
|
|
<div class="box-header">
|
|
<h2>Конечный заказ объединения #{{ report.start_order }}</h2>
|
|
<small>{{ report.start_order_place }}</small>
|
|
<small>Время объединения: {{ report.time }}</small>
|
|
<small>Пользователь: {{ report.staff }}</small>
|
|
</div>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>Товар</th>
|
|
<th>Кол-во</th>
|
|
<th>Итог</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr ng-repeat="end_order_item in report.merge_order_items.after.items">
|
|
<td>{{ $index + 1 }}</td>
|
|
<td>{{ end_order_item.name }}</td>
|
|
<td>{{ end_order_item.count.replace(",", ".") }}</td>
|
|
<td>{{ (parseFloat(end_order_item.sale_price.replace(",", "."))) * (parseFloat(end_order_item.count.replace(",", "."))) | curr }}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<table class="table table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<strong>Итого</strong>
|
|
</td>
|
|
<td style="text-align: right">
|
|
<strong>{{ report_merge.count }}</strong> объединений
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div ng-if="report_merge.count == 0">
|
|
<p>Объединения заказов отсутствуют</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |