]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Дебаг 012
authorAlexander Smirnov <fredeom@mail.ru>
Mon, 1 Jul 2024 18:00:49 +0000 (21:00 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Mon, 1 Jul 2024 18:00:49 +0000 (21:00 +0300)
erp24/modul/shipment/config.php

index ab23f4f934aaa9542436175083d97fc95bb93577..6d890106bc8d3d5e8c9d3bea4afdeb1bdcfcbdb5 100644 (file)
@@ -116,7 +116,7 @@ $status_json=array();
          }
    }
  $db::sql("UPDATE store_orders_statuses SET dostup=?,groups=?, stores_show=? WHERE id=?",[json_encode($status_json,JSON_UNESCAPED_UNICODE), $groups_sql, $stores_show, $status_id ]);
-$xxx = json_encode($status_json,JSON_UNESCAPED_UNICODE);
+
 //echo"<br> $status_id $status_json";
  }    
  
@@ -128,15 +128,13 @@ foreach($data3 as $row) {
 $store_orders_statuses[$row["id"]]=$row["name"];   
 $statuses_groups[$row["id"]]=explode(",",$row["groups"]);  
 $statuses_dostup[$row["id"]]=json_decode($row["dostup"],true,512,JSON_UNESCAPED_UNICODE);
-if ($row['id'] == 5) {
-    $yyy = $row["dostup"];
-}
-$statuses_stores_show[$row["id"]]=$row["stores_show"];  
+$statuses_stores_show[$row["id"]]=$row["stores_show"];
 }  
     
 }
 
-echo strcmp($xxx, $yyy);
+var_dump($statuses_dostup[5][70][17]['dostup']);
+var_dump($statuses_dostup[5][70][17]['bg']);
 
         /////////
 $data=$db::getRows("SELECT id,fields_sort,fields_hide FROM store_orders_statuses WHERE posit>0 ");