From: Alexander Smirnov Date: Wed, 4 Sep 2024 06:40:01 +0000 (+0300) Subject: [ERP-100] рефактор X-Git-Tag: 1.4~10^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=5352ba4af3df1b7b3eefefd1b2c8f609facc41dd;p=erp24_rep%2Fyii-erp24%2F.git [ERP-100] рефактор --- diff --git a/erp24/services/MotivationService.php b/erp24/services/MotivationService.php index 243a4ca9..2786a266 100644 --- a/erp24/services/MotivationService.php +++ b/erp24/services/MotivationService.php @@ -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));