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

index 3a6010eb399eb92fa08ba53c8cf3f1cd91ad40f3..366fb556eb348874abeac7eb7cccb7de2b0da85b 100644 (file)
@@ -428,10 +428,11 @@ $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, status_id, status, date, admin_id) 
+    $db::sql("INSERT INTO store_order_status (order_id, store_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(),