]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
add cnt shift
authorAlexander Smirnov <fredeom@mail.ru>
Tue, 4 Jun 2024 06:44:17 +0000 (09:44 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Tue, 4 Jun 2024 06:44:17 +0000 (09:44 +0300)
erp24/views/employee-sales-report/index.php

index e527b9ee78c172fed20ad1b87051d9156cfb4820..9c1c918876b081c9197063ec83564fa26687b286 100644 (file)
@@ -64,13 +64,14 @@ use dosamigos\datetimepicker\DateTimePicker;
 
     <div class="row m-5"></div>
 
-    <div style="max-width: 400px">
+    <div style="max-width: 480px">
     <table id="employeePayments" class="row-border stripe">
         <thead>
             <tr>
                 <th>Имя</th>
                 <th style="width: 100px; text-align: right">Продажи</th>
                 <th style="width: 200px; text-align: right">Среднее по продажам</th>
+                <th style="width: 200px; text-align: right">Количество смен</th>
             </tr>
         </thead>
         <tbody>
@@ -79,6 +80,7 @@ use dosamigos\datetimepicker\DateTimePicker;
                 <td><?= $admins[$adminId] ?? $productAdminNamePerGuid[$adminGuidPerId[$adminId]] . '<span style="color:red">(#' . $adminId . ')</span>' ?></td>
                 <td style="text-align: right;" data-sort="<?= $paymentsPerAdmin[$adminGuidPerId[$adminId]] ?>"><?= number_format($paymentsPerAdmin[$adminGuidPerId[$adminId]], 0, '', ' ') ?></td>
                 <td style="text-align: right;" data-sort="<?= isset($timetable[$adminId]['cnt']) ? $paymentsPerAdmin[$adminGuidPerId[$adminId]] / $timetable[$adminId]['cnt'] : 0 ?>"><?= isset($timetable[$adminId]['cnt']) ? number_format($paymentsPerAdmin[$adminGuidPerId[$adminId]] / $timetable[$adminId]['cnt'], 0, '',' ') : '<span style="color:red">смены не найдены</span>' ?></td>
+                <td style="text-align: right;" data-sort="<?= isset($timetable[$adminId]['cnt']) ? $timetable[$adminId]['cnt'] : 0 ?>"><?= isset($timetable[$adminId]['cnt']) ? $timetable[$adminId]['cnt'] : '<span style="color:red">смены не найдены</span>' ?></td>
             </tr>
             <?php endforeach; ?>
         </tbody>