]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Кнопки для смены статусов только для группы IT origin/feature_fomichev_erp-338_mp_orders_notifications
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Thu, 13 Mar 2025 13:47:56 +0000 (16:47 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Thu, 13 Mar 2025 13:47:56 +0000 (16:47 +0300)
erp24/views/marketplace-orders/index.php

index 494c2252580330bbb6480ca3392ba200cb633458..3f27e60e2b1e85ffe7b292adb1083fe631bc31f0 100644 (file)
@@ -65,7 +65,7 @@ YiiAsset::register($this);
 
                     $output = Html::tag('span', $status, ['class' => "badge $class"]);
                     $output .= '<div class="mt-2">';
-                    if ($status === 'PROCESSING') {
+                    if ($status === 'PROCESSING' && Yii::$app->user->identity->group_id == 81) {
                         $readyUrl = Url::to(['update-to-ready-status', 'id' => $model->id]);
                         $cancelUrl = Url::to(['update-to-cancelled-status', 'id' => $model->id]);
                         if ($substatus === 'STARTED') {
@@ -73,7 +73,8 @@ YiiAsset::register($this);
                                 Html::a('Готов', $readyUrl, [
                                     'class' => 'btn btn-sm btn-success',
                                     'data-method' => 'post',
-                                    'data-confirm' => 'Вы уверены, что хотите перевести заказ в статус "Готов к отправке"?',
+                                    'data-confirm' =>
+                                        'Вы уверены, что хотите перевести заказ в статус "Готов к отправке"?',
                                 ]) . ' ';
                         }
                             $output .= Html::a('Отменить', $cancelUrl, [