]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
api orders update
authorkirostumm <kirostumm@gmail.com>
Wed, 10 Jan 2024 08:56:23 +0000 (11:56 +0300)
committerkirostumm <kirostumm@gmail.com>
Wed, 10 Jan 2024 08:56:23 +0000 (11:56 +0300)
erp24/controllers/OrdersController.php

index 91536a9cb29aefa468655f39460717cb95acb9f3..e37e7156fe0c7a576e95a24c96aac0b2c31edac5 100644 (file)
@@ -293,4 +293,13 @@ class OrdersController extends Controller
 
         } else echo("Отсуствует ID заказа");
     }
+
+    public function actionStatus_logist()
+    {
+        if(!empty($_POST["lid_id"])) {
+            OrdersAmo::updateAll(['status_logist' => (int)$_POST["status_logist"], 'status_logist_time' => date('Y-m-d H:i:s')], ['id' => (int)$_POST["lid_id"]]);
+            echo"сохранили";
+
+        }
+    }
 }
\ No newline at end of file