From f2f489d8cb84c30e67bc0109c2d405ba6062013c Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Tue, 29 Apr 2025 16:22:08 +0300 Subject: [PATCH] [ERP-409] notification check --- erp24/media/controllers/NotificationController.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/erp24/media/controllers/NotificationController.php b/erp24/media/controllers/NotificationController.php index 756892a7..98b92c00 100644 --- a/erp24/media/controllers/NotificationController.php +++ b/erp24/media/controllers/NotificationController.php @@ -30,6 +30,7 @@ use yii_app\services\MarketplaceService; class NotificationController extends Controller { const OUT_DIR = +// "/tmp"; //"/www/media/notification"; "/var/www/erp24/media/notification"; @@ -234,9 +235,13 @@ class NotificationController extends Controller } $createChecks->items = Json::encode($items); $createChecks->payments = ''; - $createChecks->held = true; + $createChecks->held = 1; $createChecks->comments = ''; $createChecks->date = date('Y-m-d H:i:s'); + $createChecks->save(); + if ($createChecks->getErrors()) { + Yii::warning("ORDER_ID_: " . Json::encode($createChecks->getErrors())); + } } if (!$marketplaceOrder) { -- 2.39.5