]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Проверка на категорию цветы - инверсия
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Tue, 12 Nov 2024 14:07:59 +0000 (17:07 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Tue, 12 Nov 2024 14:07:59 +0000 (17:07 +0300)
erp24/services/MarketplaceService.php

index 4a0f82ba296fef551235eb1d447a1688a06e9d46..3651d4a195a0419343c0ac8d1dbb9db3bf09719a 100644 (file)
@@ -533,7 +533,7 @@ class MarketplaceService
             // Добавление веса и количества
       //    $offer->addChild('weight', $product['weight']);
 
-            if (isset($product['category_id']) && str_starts_with((string)$product['category_id'], '1')) {
+            if (!(isset($product['category_id']) && str_starts_with((string)$product['category_id'], '1'))) {
                 $offer->addChild('qty', $product['qty']);
             }