]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
clear code
authorJoySystem_v <fvv2011@gmail.com>
Wed, 28 Aug 2024 11:19:18 +0000 (14:19 +0300)
committerJoySystem_v <fvv2011@gmail.com>
Wed, 28 Aug 2024 11:19:18 +0000 (14:19 +0300)
erp24/api2/controllers/DataController.php

index 1e392acbe0e71fe13208580a3acd4570b83a1411..462d88c7d32af0fdd9fbb35db8eb2cdf130a0cbb 100644 (file)
@@ -478,8 +478,7 @@ class DataController extends BaseController {
 
 
                 $values = [];
-                file_put_contents(self::OUT_DIR . '/error_upload.txt',
-                    PHP_EOL . 'self_cost', FILE_APPEND);
+
 
                 foreach ($result['self_cost'] as $selfCost) {
 
@@ -487,8 +486,7 @@ class DataController extends BaseController {
                     if (!$storeId) {
                         continue;
                     }
-                    file_put_contents(self::OUT_DIR . '/error_upload.txt',
-                        PHP_EOL . $storeId, FILE_APPEND);
+
 
                     // Удаляем старые данные
                     SelfCostProduct::deleteAll(['date' => $selfCost['date'], 'store_id' => $storeId]);
@@ -506,10 +504,7 @@ class DataController extends BaseController {
 
                 if (!empty($values)) {
 
-                    file_put_contents(self::OUT_DIR . '/error_upload.txt',
-                        PHP_EOL . 'values', FILE_APPEND);
-                    file_put_contents(self::OUT_DIR . '/error_upload.txt',
-                        PHP_EOL . count($values), FILE_APPEND);
+
                     $this->setSelfCostUpdate($values);
 
                 }
@@ -1666,8 +1661,7 @@ class DataController extends BaseController {
             'updated_at'
         ];
 
-        file_put_contents(self::OUT_DIR . '/error_upload.txt',
-            PHP_EOL . 'self', FILE_APPEND);
+
 
         $this->insertDataSales($values, 'self_cost_product', $columns, 4000);
     }