From aa289f605ccfdf2b4423869a56ec7d192c4c474a Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Fri, 4 Oct 2024 15:40:47 +0300 Subject: [PATCH] =?utf8?q?[ERP-207]=20phone=20=D0=B2=20ajax-create-check-j?= =?utf8?q?son?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/modul/orders/ajax_create_check_json.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erp24/modul/orders/ajax_create_check_json.php b/erp24/modul/orders/ajax_create_check_json.php index c6857e53..e8c5f2d7 100644 --- a/erp24/modul/orders/ajax_create_check_json.php +++ b/erp24/modul/orders/ajax_create_check_json.php @@ -106,8 +106,8 @@ try { $check_id=create_guid_my("01",$order_id); if(empty($seller_id)) $seller_id="00000000-0000-0000-0000-000000000000"; -$db::sql("INSERT INTO create_checks (check_id,date,kkm_id,seller_id, store_id, type, order_id,items,payments) VALUES (?,NOW(),?,?,?,?,?,?,?)", -[$check_id,$kkm_id, $seller_id ,$store_id, "Продажа", $order_id, json_encode($products, JSON_UNESCAPED_UNICODE), json_encode($payments, JSON_UNESCAPED_UNICODE) ]); +$db::sql("INSERT INTO create_checks (check_id,date,kkm_id,seller_id, store_id, type, order_id,items,payments,phone) VALUES (?,NOW(),?,?,?,?,?,?,?,?)", +[$check_id,$kkm_id, $seller_id ,$store_id, "Продажа", $order_id, json_encode($products, JSON_UNESCAPED_UNICODE), json_encode($payments, JSON_UNESCAPED_UNICODE), $row['phone'] ]); echo"

Чек поставлен в очередь на пробитие в 1с $check_id

"; } catch (Exception $e) { -- 2.39.5