From: Alexander Smirnov Date: Tue, 29 Apr 2025 13:22:08 +0000 (+0300) Subject: [ERP-409] notification check X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=f2f489d8cb84c30e67bc0109c2d405ba6062013c;p=erp24_rep%2Fyii-erp24%2F.git [ERP-409] notification check --- 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) {