From 2f20054be2d4ea4db2dafc2756765cb727612645 Mon Sep 17 00:00:00 2001 From: Vladimir Fomichev Date: Thu, 16 Oct 2025 18:25:59 +0300 Subject: [PATCH] =?utf8?q?=D0=9B=D0=BE=D0=B3=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/services/UploadService.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/erp24/services/UploadService.php b/erp24/services/UploadService.php index 27315966..7a5bbd7c 100644 --- a/erp24/services/UploadService.php +++ b/erp24/services/UploadService.php @@ -1121,9 +1121,9 @@ class UploadService { if ($arr["seller_id"] == '00000000-0000-0000-0000-000000000000') { $arr["seller_id"] = "NULL"; } - + LogService::apiErrorLog(json_encode(["error_id" => 121, "error" => __LINE__], JSON_UNESCAPED_UNICODE)); $pay_arr = self::getPayArr($arr["payments"]); - + LogService::apiErrorLog(json_encode(["error_id" => 121, "error" => __LINE__], JSON_UNESCAPED_UNICODE)); $store_id = ClientHelper::getExportId($arr["store_id"], "city_store", 1); // $admin_id = ClientHelper::getExportId($arr["seller_id"], "admin", 1); $exportImportTable = ExportImportTable::find()->select(['entity_id'])->where(['entity' => 'admin']) @@ -1131,14 +1131,16 @@ class UploadService { $exportImportTableIds = ArrayHelper::getColumn($exportImportTable, 'entity_id'); $admin = Admin::find()->where(['in', 'id', $exportImportTableIds])->andWhere(['>', 'group_id', 0])->one(); $admin_id = $admin->id ?? 0; - + LogService::apiErrorLog(json_encode(["error_id" => 121, "error" => __LINE__], JSON_UNESCAPED_UNICODE)); //удаляем чеки и товары в чеках $saleUpdate = SalesUpdate::find()->where(['id' => $arr["id"]])->one(); + LogService::apiErrorLog(json_encode(["error_id" => 121, "error" => __LINE__], JSON_UNESCAPED_UNICODE)); if ($saleUpdate) { + LogService::apiErrorLog(json_encode(["error_id" => 121, "error" => __LINE__], JSON_UNESCAPED_UNICODE)); $saleUpdate->delete(); } // SalesProductsUpdate::deleteAll(['check_id' => $arr["id"]]); - + LogService::apiErrorLog(json_encode(["error_id" => 121, "error" => __LINE__], JSON_UNESCAPED_UNICODE)); if ($update) { LogService::apiErrorLog(json_encode(["error_id" => 121, "error" => __LINE__], JSON_UNESCAPED_UNICODE)); $sales = Sales::find()->where(['id' => $arr["id"]])->one(); -- 2.39.5