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

index 57dba381951bacf5b3b65a810db59bf90a44a423..ab23f4f934aaa9542436175083d97fc95bb93577 100644 (file)
@@ -106,17 +106,17 @@ $status_json=array();
         foreach($statuses_groups[$status_id] as $gid) {   
             
             
-          foreach($fields as $id22 => $arrr2) {    
+          foreach($fields as $id22 => $arrr2) {
             $t=$_POST["field_edit"][$status_id][$row["id"]][$gid][$id22] ?? '';
             // if(!empty($t)) {
-               //  echo"<br>+ $status_id-".$row["id"]."-$gid-$id22 ====". $t; 
+               //  echo"<br>+ $status_id-".$row["id"]."-$gid-$id22 ====". $t;
               $status_json[$gid][$row["id"]][$id22] = $t;
            //  }
           }
          }
    }
  $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";
  }    
  
@@ -127,12 +127,16 @@ $data3=$db::getRows("SELECT * FROM store_orders_statuses  WHERE posit>0 order by
 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);  
+$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"];  
 }  
     
 }
 
+echo strcmp($xxx, $yyy);
 
         /////////
 $data=$db::getRows("SELECT id,fields_sort,fields_hide FROM store_orders_statuses WHERE posit>0 ");