]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
fix(ERP-247): remove debug Yii::error срок доставки logs from MarketplaceService
authorAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Sat, 28 Feb 2026 19:15:29 +0000 (22:15 +0300)
committerAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Sat, 28 Feb 2026 19:15:29 +0000 (22:15 +0300)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
erp24/services/MarketplaceService.php

index 72f14935a00c08d33b6351301d56c629428b627c..2a12f571bcf1652fb4943a19b7a757a86eb05768 100644 (file)
@@ -1351,10 +1351,6 @@ class MarketplaceService
                             }
                             $shipments = $delivery->getShipments();
                             if ($shipments) {
-                                foreach ($shipments as $index => $shipment) {
-                                    Yii::error("срок доставки: {$index}" . json_encode($shipment, JSON_UNESCAPED_UNICODE));
-                                }
-
                                 $deliveryDateTo = ($shipments[0])->getShipmentDate() ?? null;
                                 $deliveryTimeTo = ($shipments[0])->getShipmentTime() ?? '';
 
@@ -1582,10 +1578,6 @@ class MarketplaceService
                         
                         $shipments = $delivery ? $delivery->getShipments() : null;
                         if ($shipments) {
-                            foreach ($shipments as $index => $shipment) {
-                                Yii::error("срок доставки: {$index}" . json_encode($shipment, JSON_UNESCAPED_UNICODE));
-                            }
-
                             $deliveryDateTo = ($shipments[0])->getShipmentDate() ?? null;
                             $deliveryTimeTo = ($shipments[0])->getShipmentTime() ?? '';
 
@@ -1731,8 +1723,8 @@ class MarketplaceService
                                         'count' => $item->getCount(),
                                         'vat' => $item->getVat(),
                                         'shop_sku' => $item->getShopSku(),
-                                        'subsidy' => $item->getSubsidy(),
-                                        'partner_warehouse_id' => $item->getPartnerWarehouseId(),
+                                        'subsidy' => $item->getSubsidy() ?? 0,
+                                        'partner_warehouse_id' => $item->getPartnerWarehouseId() ?? 'N/A',
                                         'promos' => json_encode($item->getPromos(), JSON_UNESCAPED_UNICODE),
                                         'subsidies' => json_encode($item->getSubsidies(), JSON_UNESCAPED_UNICODE),
                                     ];
@@ -1834,10 +1826,6 @@ class MarketplaceService
                                 }
                                 $shipments = $delivery->getShipments();
                                 if ($shipments) {
-                                    foreach ($shipments as $index => $shipment) {
-                                        Yii::error("срок доставки: {$index}" . json_encode($shipment, JSON_UNESCAPED_UNICODE));
-                                    }
-
                                     $deliveryDateTo = ($shipments[0])->getShipmentDate() ?? null;
                                     $deliveryTimeTo = ($shipments[0])->getShipmentTime() ?? '';
 
@@ -1894,10 +1882,6 @@ class MarketplaceService
                             $delivery = $order->getDelivery();
                             $shipments = $delivery->getShipments();
                             if ($shipments) {
-                                foreach ($shipments as $index => $shipment) {
-                                    Yii::error("срок доставки: {$index}" . json_encode($shipment, JSON_UNESCAPED_UNICODE));
-                                }
-
                                 $deliveryDateTo = ($shipments[0])->getShipmentDate() ?? null;
                                 $deliveryTimeTo = ($shipments[0])->getShipmentTime() ?? '';