124 lines
6.5 KiB
HTML
124 lines
6.5 KiB
HTML
<div class="modal-dialog modal-lg" style="min-width: 390px; max-width: 1300px">
|
|
<div class="modal-content" id="reportSliced">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<button class="btn btn-icon white" ng-click="printElem('#reportSliced')">
|
|
<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_slice.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_slice.count > 0">
|
|
|
|
<div class="row" ng-repeat="report in report_slice" style="margin-left: 0px; margin-right: 0px;">
|
|
<hr/>
|
|
<div class="col-md-4">
|
|
<div class="box">
|
|
<div class="box-header">
|
|
<h2>Исходный заказ разбиения #{{ report.from_order }}</h2>
|
|
<small>Время разбиения: {{ report.time }}</small>
|
|
<small>Пользователь: {{ report.staff }}</small>
|
|
<small>{{ report.from_place }}</small>
|
|
</div>
|
|
<div class="box-divider m-0"></div>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>Товар</th>
|
|
<th>Кол-во</th>
|
|
<th>Итог</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr ng-repeat="item in report.start_data.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.from_order }}</h2>
|
|
<small> - </small>
|
|
<small> - </small>
|
|
<small> {{ report.from_place }} </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.start_data.after.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.to_order }}</h2>
|
|
<small> - </small>
|
|
<small> - </small>
|
|
<small> {{ report.to_place }} </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="moved_item in report.moved_items.items">
|
|
<td>{{ $index + 1 }}</td>
|
|
<td>{{ moved_item.name }}</td>
|
|
<td>{{ moved_item.count.replace(",", ".") }}</td>
|
|
<td>{{ (parseFloat(moved_item.sale_price.replace(",", "."))) * (parseFloat(moved_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_slice.count }}</strong> разбиений
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div ng-if="report_slice.count == 0">
|
|
<p>Разбиения заказов отсутствуют</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |