From: kirostumm Date: Wed, 10 Jan 2024 08:56:23 +0000 (+0300) Subject: api orders update X-Git-Tag: 1.1~190^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=55a8aa24d38c7034c932366a3b73af7211d46d4c;p=erp24_rep%2Fyii-erp24%2F.git api orders update --- diff --git a/erp24/controllers/OrdersController.php b/erp24/controllers/OrdersController.php index 91536a9c..e37e7156 100644 --- a/erp24/controllers/OrdersController.php +++ b/erp24/controllers/OrdersController.php @@ -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