]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
добавлена цена позиции feature_zozirova_erp-423_add_price_to_api origin/feature_zozirova_erp-423_add_price_to_api
authormarina <m.zozirova@gmail.com>
Mon, 23 Jun 2025 07:45:20 +0000 (10:45 +0300)
committermarina <m.zozirova@gmail.com>
Mon, 23 Jun 2025 07:45:20 +0000 (10:45 +0300)
erp24/api2/controllers/OrdersController.php

index 491363a7d50b5e434920247ae54a85fb065a3475..6e27431c33317776a7c025a00798e826ef32cb0a 100644 (file)
@@ -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,
                         ];
                     }
                 }