]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
shipment fix 3
authorAlexander Smirnov <fredeom@mail.ru>
Thu, 18 Apr 2024 10:49:56 +0000 (13:49 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Thu, 18 Apr 2024 10:49:56 +0000 (13:49 +0300)
erp24/modul/shipment/functionsShipment.php

index 951cf52396d5b2a3d24f9ce2e367b139d3dc5566..0e8a1fcdf0920d4413d273d94fe80d7c9927dca5 100644 (file)
@@ -513,7 +513,7 @@ global $FiledsData, $fieldsRows, $orderId;
  ) {$storeId="NULL"; $color=$colorFirst;  }
   
 
-$value=$FiledsData[$field_name][$productId][$storeId][$color]??'';
+$value=$FiledsData[$field_name][$productId][$storeId][$color] ?? 0;
  
 //$value=$field_name;
  $tip=$fieldsRows[$field_name]["tip"];  
@@ -525,9 +525,9 @@ $value=$FiledsData[$field_name][$productId][$storeId][$color]??'';
   }  
    
   
-$value_title=$FiledsData["title__".$field_name][$productId][$storeId][$color] ?? 0;
-if(empty($value_title)) $value_title=$FiledsData["title__".$field_name][$productId][$storeId]["NULL"] ?? 0;
-if(empty($value_title)) $value_title=$FiledsData["title__".$field_name][$productId]["NULL"]["NULL"] ?? 0;
+$value_title=$FiledsData["title__".$field_name][$productId][$storeId][$color] ?? '';
+if(empty($value_title)) $value_title=$FiledsData["title__".$field_name][$productId][$storeId]["NULL"] ?? '';
+if(empty($value_title)) $value_title=$FiledsData["title__".$field_name][$productId]["NULL"]["NULL"] ?? '';
 //$value_title=" $field_name $productId $storeId $color ";
   
 if($tip!="string" and $tip!="double" ) $value=round($value);