]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-100] рефактор feature_smirnov_erp-100_services_delivery_for_motivation origin/feature_smirnov_erp-100_services_delivery_for_motivation
authorAlexander Smirnov <fredeom@mail.ru>
Wed, 4 Sep 2024 06:40:01 +0000 (09:40 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Wed, 4 Sep 2024 06:40:01 +0000 (09:40 +0300)
erp24/services/MotivationService.php

index 243a4ca97bf950a83e36f7d076101bf1ceb22582..2786a266831b6eaa334a02a50e0ed2677fba73a8 100644 (file)
@@ -588,8 +588,6 @@ class MotivationService
                 ->andWhere(['product_id' => array_keys($products1cDelivery)])
                 ->asArray()->one();
 
-            $motivationCostsItem = MotivationCostsItem::find()->where(['name' => 'Услуги по доставке'])->one();
-            /** @var $motivationCostsItem MotivationCostsItem */
             if ($motivation) {
                 self::saveOrUpdateMotivationValue($motivation->id, 'week' . $ind, self::CODE_DELIVERY_SERVICES,
                     'float', ($salesProduct['total'] ?? 0));