From: marina Date: Thu, 19 Dec 2024 12:31:37 +0000 (+0300) Subject: ERP-256 Сделать отправку документов Пересортица в 1с X-Git-Tag: 1.7~123^2~2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=be51b9d3cd954ad9c6c46ad0f033dad45f14de91;p=erp24_rep%2Fyii-erp24%2F.git ERP-256 Сделать отправку документов Пересортица в 1с --- diff --git a/erp24/api2/controllers/DataController.php b/erp24/api2/controllers/DataController.php index 2a1f6c70..cb887bef 100644 --- a/erp24/api2/controllers/DataController.php +++ b/erp24/api2/controllers/DataController.php @@ -1250,7 +1250,7 @@ class DataController extends BaseController ); foreach ($result["created_resortings"] as $arr) { if (!empty($arr["id"])) { - $replacementInvoice = ReplacementInvoice::findOne(['guid' => $arr["arr"]]); + $replacementInvoice = ReplacementInvoice::findOne(['guid' => $arr["id"]]); } if (!empty($replacementInvoice)) { @@ -1294,7 +1294,7 @@ class DataController extends BaseController if ($replacementInvoice->getErrors()) { LogService::apiErrorLog( json_encode( - ["error_id" => 4.55, "error" => $replacementInvoice->getErrors()], + ["error_id" => 4.555, "error" => $replacementInvoice->getErrors()], JSON_UNESCAPED_UNICODE ) );