]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Логи
authorVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Thu, 16 Oct 2025 15:31:10 +0000 (18:31 +0300)
committerVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Thu, 16 Oct 2025 15:31:10 +0000 (18:31 +0300)
erp24/services/UploadService.php

index 7a5bbd7c9804fec2082803ec2dfe75d81384aa45..483687ec495dbfe4e8a5deeab8c850bd8bbb151f 100644 (file)
@@ -1150,7 +1150,7 @@ class UploadService {
                         SalesItems::deleteAll(['check_id' => $arr["id"]]);
                         SalesProducts::deleteAll(['check_id' => $arr["id"]]);
                     }
-
+                    LogService::apiErrorLog(json_encode(["error_id" => 121, "error" => __LINE__], JSON_UNESCAPED_UNICODE));
                     // проверяем стутс чека - вносим только Архивные и пробитые
 //                    if (!empty($arr["status"])) {
 //                        $salesUpdate = new SalesUpdate;
@@ -1219,7 +1219,7 @@ class UploadService {
 //                            }
 //                        }
 //                    }
-
+                    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));
                         $sales2 = new Sales;
@@ -1345,6 +1345,7 @@ class UploadService {
                         }
                     }
                 }
+                LogService::apiErrorLog(json_encode(["error_id" => 121, "error" => __LINE__], JSON_UNESCAPED_UNICODE));
             } elseif (!empty($result['checks'])) {
                 LogService::apiErrorLog(json_encode(["error_id" => 121, "error" => __LINE__], JSON_UNESCAPED_UNICODE));
                 file_put_contents(self::OUT_DIR . '/error_upload.txt',