From: fomichev Date: Mon, 20 Jan 2025 16:31:09 +0000 (+0300) Subject: Проверка бонусов X-Git-Tag: 1.7~62^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=dfade6720f3b3ae7d6e2458899be7000450a14a9;p=erp24_rep%2Fyii-erp24%2F.git Проверка бонусов --- diff --git a/erp24/commands/CronController.php b/erp24/commands/CronController.php index e560d70c..feadf7d9 100644 --- a/erp24/commands/CronController.php +++ b/erp24/commands/CronController.php @@ -331,7 +331,7 @@ class CronController extends Controller ->andWhere(['tip_sale' => 'target']) ->andWhere(['date_start' => $kogortDate]) ->one(); - if ($userBonusExist) { + if (!$userBonusExist) { $userBonus4 = new UsersBonus(); $userBonus4->phone = '' . $phone; $userBonus4->name = $name;