From: marina Date: Sat, 27 Apr 2024 15:13:49 +0000 (+0300) Subject: insert ignore c mysql переведен postgresql правки X-Git-Tag: 1.1~84^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=c96cdb54f0eec35571185337be5e23914667d48d;p=erp24_rep%2Fyii-erp24%2F.git insert ignore c mysql переведен postgresql правки --- diff --git a/erp24/modul/shipment/functionsShipment.php b/erp24/modul/shipment/functionsShipment.php index 3a6010eb..366fb556 100644 --- a/erp24/modul/shipment/functionsShipment.php +++ b/erp24/modul/shipment/functionsShipment.php @@ -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(),