]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
поправка
authorAlexander Smirnov <fredeom@mail.ru>
Mon, 27 Jan 2025 14:01:18 +0000 (17:01 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Mon, 27 Jan 2025 14:01:18 +0000 (17:01 +0300)
erp24/views/category-plan/index.php

index b8201dce460176006817e23cd6a67a7d7bb7f11a..cc702415f22e1d5eee849e7ff8a78e101ea00736 100644 (file)
@@ -162,8 +162,9 @@ $this->registerJsFile('/js/category-plan/index.js', ['position' => \yii\web\View
                 <h1><?= $stores[$model->store_id]?></h1>
             </div>
         </div>
+        <?php if (isset($salesWriteOffsPlan)): ?>
         <div class="table-responsive" style="max-width: 1285px;">
-            <table id="categoryPlan">
+            <table id="categoryPlan" style="width:100%">
                 <?php
                 $offline_sale = $salesWriteOffsPlan->offline_sales_plan;
                 $online_sale = $salesWriteOffsPlan->online_sales_shop_plan;
@@ -197,6 +198,12 @@ $this->registerJsFile('/js/category-plan/index.js', ['position' => \yii\web\View
                 </tbody>
             </table>
         </div>
+        <?php else: ?>
+            <span class="text-lightpink-red font-weight-bold">
+                Не задан план по магазину. Чтобы задать план пройдите на страницу
+                <a href="/sales-write-offs-plan" target="_blank"><?= \yii\helpers\Url::base(true) . '/sales/write-offs-plan' ?></a>.
+            </span>
+        <?php endif; ?>
     <?php endif; ?>
 
 </div>