From: Aleksey Filippov Date: Sat, 28 Feb 2026 19:15:29 +0000 (+0300) Subject: fix(ERP-247): remove debug Yii::error срок доставки logs from MarketplaceService X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=c312fe81b208e6716bb81e9e419a32a8cf885d29;p=erp24_rep%2Fyii-erp24%2F.git fix(ERP-247): remove debug Yii::error срок доставки logs from MarketplaceService Co-Authored-By: Claude Sonnet 4.6 --- diff --git a/erp24/services/MarketplaceService.php b/erp24/services/MarketplaceService.php index 72f14935..2a12f571 100644 --- a/erp24/services/MarketplaceService.php +++ b/erp24/services/MarketplaceService.php @@ -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() ?? '';