From: fomichev Date: Mon, 14 Jul 2025 13:02:20 +0000 (+0300) Subject: Ошибка warehouseId X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=6aa8bd5c39a2baf5ad3f534981ece3644c7e4531;p=erp24_rep%2Fyii-erp24%2F.git Ошибка warehouseId --- diff --git a/erp24/services/MarketplaceService.php b/erp24/services/MarketplaceService.php index a3a4b788..01e87a54 100644 --- a/erp24/services/MarketplaceService.php +++ b/erp24/services/MarketplaceService.php @@ -1150,8 +1150,8 @@ class MarketplaceService $orderItem->count = $item->getCount(); $orderItem->vat = $item->getVat(); $orderItem->shop_sku = $item->getShopSku(); - $orderItem->subsidy = $item->getSubsidy(); - $orderItem->partner_warehouse_id = $item->getPartnerWarehouseId(); + $orderItem->subsidy = $item->getSubsidy() ?? 0; + $orderItem->partner_warehouse_id = $item->getPartnerWarehouseId() ?? ''; $orderItem->promos = json_encode($item->getPromos(), JSON_UNESCAPED_UNICODE); $orderItem->subsidies = json_encode($item->getSubsidies(), JSON_UNESCAPED_UNICODE);