From: marina Date: Mon, 23 Jun 2025 07:45:20 +0000 (+0300) Subject: добавлена цена позиции X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=f9b07c6d7efe8e1d40af4ab4eec375569b177c2f;p=erp24_rep%2Fyii-erp24%2F.git добавлена цена позиции --- diff --git a/erp24/api2/controllers/OrdersController.php b/erp24/api2/controllers/OrdersController.php index 491363a7..6e27431c 100644 --- a/erp24/api2/controllers/OrdersController.php +++ b/erp24/api2/controllers/OrdersController.php @@ -206,6 +206,7 @@ class OrdersController extends BaseController $storeId = $storesGuidId[$storeGuid]; $currentTime = new \DateTime(); + $currentTime = new \DateTime(); $startTime = (clone $currentTime)->modify('-24 hours'); $orders = MarketplaceOrders::find() @@ -227,6 +228,7 @@ class OrdersController extends BaseController $items[] = [ 'product_id' => $product1c->id ?? null, 'quantity' => $product->count ?? null, + 'price' => $product->price ?? null, ]; } }