]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-394] debug 10
authorAlexander Smirnov <fredeom@mail.ru>
Tue, 1 Apr 2025 10:47:59 +0000 (13:47 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Tue, 1 Apr 2025 10:47:59 +0000 (13:47 +0300)
erp24/views/orders/delivery.php

index 85e56fef7b933e97cf04befe8e3060b7e71e20ee..34d969f7bce3182224f3665e391c229d6703aad2 100644 (file)
@@ -54,7 +54,7 @@ $this->registerCss('
         "options" => ["target" => "_blank"],
     ]) ?>
     <?= Html::hiddenInput('action', 'amoUpdateDate') ?>
-    <?= Html::textInput('date', date('Y-m-d'), ['required' => true, 'type' => 'date']) ?>
+    <?= Html::textInput('date', date('Y-m-d'), ['required' => true, 'type' => 'date']) ?>&nbsp;&nbsp;&nbsp;
     <?= Html::submitButton('импортировать заказы с amo на выбранную дату', ['class' => 'btn btn-info']) ?>
     <?php ActiveForm::end() ?>
     <div style="color: red; font-size: 1rem; ">После импортирования заказов из АМО<br> нужно перезагрузить страницу с заказами</div>
@@ -83,7 +83,7 @@ $this->registerCss('
         <label for="st__<?= $id ?>" class="m-1">
             <?= Html::checkbox('statuses[' . $id . ']', null, ['id' => 'st__' . $id]) ?>
             <?= $name ?>
-        </label>";
+        </label>
     <?php endforeach; ?>
     <br>
     <?= Html::submitButton('вывод', ['class' => 'btn btn-success'])?>
@@ -99,7 +99,7 @@ $this->registerCss('
         <tbody>
         <?php foreach ($ordersAmo as $ind => $orderAmo): ?>
             <tr>
-                <td class="bg-<?= $yeses[$ind] ? "danger" : "success" ?>">
+                <td class="bg-<?= $yeses[$ind] == 0 ? "danger" : "success" ?>">
                     <a href="https://bazacvetov24.amocrm.ru/leads/detail/<?= $orderAmo["amo_id"] ?>" target=new><b><?= $orderAmo["dated"] ?></b></a>
                     <?= $orderAmo["updated_at"] ?> <br> <?= $orderAmo["delivery"] . ' ' . $orderAmo["delivery_time"] ?>
                     <?php if ($orderAmo["store"] != "" && $orderAmo["store"] != "ул. Аэродромная, 28"): ?>
@@ -180,11 +180,11 @@ $this->registerCss('
                             <?php endif; ?>
                         </div>
                         <div class="col-6 text-right">
-                            <?php if (!empty($users_arr[$orderAmo["florist_id"]])): ?>
-                                Флорист <?= $users_arr[$orderAmo["florist_id"]] ?>
+                            <?php if (!empty($users_arr_group_3_plus[$orderAmo["florist_id"]])): ?>
+                                Флорист <?= $users_arr_group_3_plus[$orderAmo["florist_id"]] ?>
                             <?php endif; ?>
-                            <?php if (!empty($users_arr[$orderAmo["courier_id"]])): ?>
-                                Курьер <?= $users_arr[$orderAmo["courier_id"]] ?>
+                            <?php if (!empty($users_arr_group_3_plus[$orderAmo["courier_id"]])): ?>
+                                Курьер <?= $users_arr_group_3_plus[$orderAmo["courier_id"]] ?>
                             <?php endif; ?>
                         </div>
                     </div>