]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-409] notification check
authorAlexander Smirnov <fredeom@mail.ru>
Tue, 29 Apr 2025 13:22:08 +0000 (16:22 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Tue, 29 Apr 2025 13:22:08 +0000 (16:22 +0300)
erp24/media/controllers/NotificationController.php

index 756892a7cf1ab03a9f1bc6fca1a5ada0ad0d0b4d..98b92c002fef40e688c8e7f3ab02798cd0b0ce47 100644 (file)
@@ -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) {