]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Изменил кол-во
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Wed, 23 Oct 2024 13:03:10 +0000 (16:03 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Wed, 23 Oct 2024 13:03:10 +0000 (16:03 +0300)
erp24/services/MarketplaceService.php

index da39b03b4d9eedf00104486fc06c441e23044923..b7ec23bbab2ccd4b9db8ffcb43213d4ac0ebb134 100644 (file)
@@ -165,6 +165,7 @@ class MarketplaceService
             $offer->addChild('weight', $product['weight']);
             $offer->addChild('qty', $product['qty']);
             $offer->addChild('amount', $product['amount']);
+            $offer->addChild('cost', $product['amount']);
 
             foreach ($product['composition'] as $component) {
                 $consist = $offer->addChild('consist', $component['quantity']);
@@ -212,7 +213,7 @@ class MarketplaceService
     }
     private static function getProductOldPrice($productId) { return null; }
     private static function getProductDescription($productId) { return 'Описание'; }
-    private static function getProductQty($productId) { return 5; }
+    private static function getProductQty($productId) { return 10; }
     private static function getProductWeight($productId) {
         return 0.5;
     }