From 29722c6de0f918339db20a58e0c88cd59811b2af Mon Sep 17 00:00:00 2001 From: marina Date: Wed, 23 Jul 2025 13:08:34 +0300 Subject: [PATCH] =?utf8?q?ERP-438=20=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE?= =?utf8?q?=D1=82=D0=BA=D0=B0=20=D1=8D=D0=BD=D0=B4=D0=BF=D0=BE=D0=B9=D0=BD?= =?utf8?q?=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/api2/controllers/ClientController.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/erp24/api2/controllers/ClientController.php b/erp24/api2/controllers/ClientController.php index 6dd2f722..bde53c3a 100644 --- a/erp24/api2/controllers/ClientController.php +++ b/erp24/api2/controllers/ClientController.php @@ -703,9 +703,8 @@ class ClientController extends BaseController $orderId = $data['order_id'] ?? null; $phone = $data['phone'] ?? null; $pointsToUse = $data['points_to_use'] ?? null; - $comment = $data['comment'] ?? null; - if (!$orderId || !$phone || !$pointsToUse) { + if (!$orderId || !$phone) { return $this->asJson(['error' => ['code' => 400, 'message' => 'Недостаточно параметров']]); } @@ -815,7 +814,6 @@ class ClientController extends BaseController $orderId = $data['order_id'] ?? null; $phone = $data['phone'] ?? null; $pointsToAdd = $data['points_to_add'] ?? null; - $comment = $data['comment'] ?? null; if (!$orderId || !$phone || !$pointsToAdd) { return $this->asJson(['error' => ['code' => 400, 'message' => 'Недостаточно параметров']]); @@ -854,8 +852,8 @@ class ClientController extends BaseController $userBonus = new UsersBonus(); $userBonus->phone = $phone; - $userBonus->name = $comment . sprintf( - 'Возврат с покупки 10%%. Чек %s от %s. Сумма чека %s', + $userBonus->name = sprintf( + 'Возврат с покупки. Чек %s от %s. Сумма чека %s', $sale->number, date('d.m.Y H:i:s', strtotime($sale->date)), $sale->summ -- 2.39.5