From: fomichev Date: Mon, 11 Nov 2024 14:47:20 +0000 (+0300) Subject: Исправление X-Git-Tag: 1.6~13^2~12 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=0029f486100817a5dd588d017943f86d899833ae;p=erp24_rep%2Fyii-erp24%2F.git Исправление --- diff --git a/erp24/services/MarketplaceService.php b/erp24/services/MarketplaceService.php index b3420636..287c27f9 100644 --- a/erp24/services/MarketplaceService.php +++ b/erp24/services/MarketplaceService.php @@ -136,7 +136,7 @@ class MarketplaceService $bouquetCount = PHP_INT_MAX; foreach ($stockRecords as $productGuid => $values) { - $temp = intval($values['count'] / $products[$productGuid]); + $temp = intval($values['count'] / $products->$productGuid); $bouquetCount = !empty($bouquetCount) ? min($bouquetCount, $temp) : $temp; $store = $values['marketplace_guid'];