From: Alexander Smirnov Date: Wed, 17 Jul 2024 11:58:52 +0000 (+0300) Subject: Начисляем и подписаным и не подписанным X-Git-Tag: 1.4~71^2~1 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=fe087a517b872ffde7122b5de737252b742d9dcb;p=erp24_rep%2Fyii-erp24%2F.git Начисляем и подписаным и не подписанным --- diff --git a/erp24/actions/bonus/Add20TelegramCreatedAtIsNullAction.php b/erp24/actions/bonus/Add20TelegramCreatedAtIsNullAction.php index 1f817f58..b61d5e5a 100644 --- a/erp24/actions/bonus/Add20TelegramCreatedAtIsNullAction.php +++ b/erp24/actions/bonus/Add20TelegramCreatedAtIsNullAction.php @@ -12,8 +12,8 @@ use yii_app\records\UsersBonus; class Add20TelegramCreatedAtIsNullAction extends Action { public function run() { - $users = Users::find()->where(['telegram_is_subscribed' => 1]) - ->andWhere(['>=', 'date', '2024-07-15 17:30:00']) + $users = Users::find() + ->where(['>=', 'date', '2024-07-15 17:30:00']) ->andWhere(['<=', 'date', '2024-07-17 12:37:16+03']) ->andWhere(['IS NOT', 'date_first_sale', null]) ->orderBy('id desc')