]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Значения по умолчанию для отсутствующего в таблице параметра quantity_zakup_fact_summ
authorAlexander Smirnov <fredeom@mail.ru>
Tue, 18 Jun 2024 09:41:02 +0000 (12:41 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Tue, 18 Jun 2024 09:41:02 +0000 (12:41 +0300)
erp24/modul/shipment/functionsShipment.php

index 6bf0818df5cf8ac2cf9e6f573f2e31695a22359c..ec544e9de6f1c7008b79b0f003f4214106ddfdae 100644 (file)
@@ -722,8 +722,8 @@ if(!empty($bgNew)) $bg=$bgNew;
 function insert_store_orders_fields($massivSQL,$field_name,$massivTitle=[], $print=false) {
     global $db,$orderId,$storeIdToGuidArray,$fieldsRows, $FiledsData;
 
-    $field_id=$fieldsRows[$field_name]["id"];
-    $type=$fieldsRows[$field_name]["type"];
+    $field_id=$fieldsRows[$field_name]["id"] ?? 0;
+    $type=$fieldsRows[$field_name]["type"] ?? '';
 
     $divisionFieldsArray=["division_store","division_store_hand","division_store_summ"];