]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-256 Сделать отправку документов Пересортица в 1с
authormarina <m.zozirova@gmail.com>
Thu, 19 Dec 2024 07:36:47 +0000 (10:36 +0300)
committermarina <m.zozirova@gmail.com>
Thu, 19 Dec 2024 07:36:47 +0000 (10:36 +0300)
erp24/api2/controllers/DataController.php

index 66d3d7ba227e544eb089e5bcf29c9ad547801dd4..14f3f64348dad1525ded81ba3faaaf6eb3f59b3c 100644 (file)
@@ -172,7 +172,7 @@ class DataController extends BaseController {
 //            ];
 
         } catch (Exception $e) {
-            file_put_contents(self::OUT_DIR . '/request_error.txt', PHP_EOL . date("d.m.Y H:i:s", time()) . $e->getMessage(), FILE_APPEND);
+            file_put_contents(self::OUT_DIR . '/request_error.txt', PHP_EOL . date("d.m.Y H:i:s", time()) . $e->getMessage() . $e->getLine(), FILE_APPEND);
         } finally {
             $jsonArray = [];
             $apiCron = ApiCron::find()->where(['status' => 0])->orderBy(['date' => SORT_ASC])->one();
@@ -301,7 +301,7 @@ class DataController extends BaseController {
                 }
             }
         } catch (Exception $e3) {
-            file_put_contents(self::OUT_DIR . '/log_created_waybill_incoming_error.txt', PHP_EOL . date("d.m.Y H:i:s", time()) . $e3->getMessage(), FILE_APPEND);
+            file_put_contents(self::OUT_DIR . '/log_created_replacement_invoice_error.txt', PHP_EOL . date("d.m.Y H:i:s", time()) . $e3->getMessage(), FILE_APPEND);
         }
     }