]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
insert ignore c mysql переведен postgresql правки
authormarina <m.zozirova@gmail.com>
Sat, 27 Apr 2024 15:07:32 +0000 (18:07 +0300)
committermarina <m.zozirova@gmail.com>
Sat, 27 Apr 2024 15:07:32 +0000 (18:07 +0300)
erp24/modul/shipment/functionsShipment.php

index fb5e842507129387363bb73e2f4d17034962af9d..3a6010eb399eb92fa08ba53c8cf3f1cd91ad40f3 100644 (file)
@@ -428,11 +428,10 @@ $status_store="";
 if(!empty($store_id)) {
     
 if(!empty($_GET["status"]) and !empty($store_id) and !empty($orderId)) {
-    $db::sql("INSERT INTO store_order_status_log (order_id, store_id, status_id, status, date, admin_id) 
-                VALUES ('$orderId', '$store_id', $status_order_id, 1, NOW(), " . $_SESSION["admin_id"] . ")
+    $db::sql("INSERT INTO store_order_status_log (order_id, status_id, status, date, admin_id) 
+                VALUES ('$orderId', $status_order_id, 1, NOW(), " . $_SESSION["admin_id"] . ")
                 ON CONFLICT (id) DO UPDATE SET 
                     order_id = '$orderId', 
-                    store_id = '$store_id', 
                     status_id = $status_order_id, 
                     status = 1,
                     date = NOW(),