]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-207] phone в ajax-create-check-json origin/feature_smirnov_erp-207_phone_in_create_checks
authorAlexander Smirnov <fredeom@mail.ru>
Fri, 4 Oct 2024 12:40:47 +0000 (15:40 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Fri, 4 Oct 2024 12:40:47 +0000 (15:40 +0300)
erp24/modul/orders/ajax_create_check_json.php

index c6857e53ac1e2f5ff39e8d96d80282f8a58528d7..e8c5f2d78f37a568b44985b8115e92f6584b7cc2 100644 (file)
@@ -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"<h1>Чек поставлен в очередь на пробитие в 1с $check_id</h1>";
 }
 catch (Exception $e) {