From: Alexander Smirnov Date: Tue, 18 Jun 2024 08:17:05 +0000 (+0300) Subject: Дебаг 003 X-Git-Tag: 1.3~54^2~8 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=941ee0e24b9cc0a39a7477d18df67475cb8377cb;p=erp24_rep%2Fyii-erp24%2F.git Дебаг 003 --- diff --git a/erp24/modul/shipment/functionsShipment.php b/erp24/modul/shipment/functionsShipment.php index f8d51f25..1de42d49 100644 --- a/erp24/modul/shipment/functionsShipment.php +++ b/erp24/modul/shipment/functionsShipment.php @@ -770,13 +770,9 @@ function insert_store_orders_fields($massivSQL,$field_name,$massivTitle=[], $pri VALUES (?,?,?,?,?,?,?,?,'-1',NOW(),?) ON CONFLICT (order_id, product_id, store_id, field_id, field_name, color) DO UPDATE SET value=?, hand=0, value_text=?, date_update=NOW(), title=?"; $sql2 = "INSERT INTO store_orders_fields_data (product_id, order_id, store_id, field_name, field_id, value, value_text, color,hand,date_update, title) VALUES ('$productId','$orderId','$storeId','$field_name','$field_id','$value','$value_text','$color','-1',NOW(),'$title') ON CONFLICT (order_id, product_id, store_id, field_id, field_name, color) DO UPDATE SET value='$value', hand=0, value_text='$value_text', date_update=NOW(), title='$title'"; - try { - $db::sql($sql, [$productId, $orderId, $storeId, $field_name, $field_id, $value, $value_text, $color, $title, $value, $value_text, $title]); - } catch (Exception $ex) { - var_dump($sql); - var_dump([$productId, $orderId, $storeId, $field_name, $field_id, $value, $value_text, $color, $title, $value, $value_text, $title]); - die; - } + var_dump($sql); + var_dump([$productId, $orderId, $storeId, $field_name, $field_id, $value, $value_text, $color, $title, $value, $value_text, $title]); + $db::sql($sql, [$productId, $orderId, $storeId, $field_name, $field_id, $value, $value_text, $color, $title, $value, $value_text, $title]); } }