From f9b8aad1e868ecae5cfd5dadce49fa233a7fb2f9 Mon Sep 17 00:00:00 2001 From: fomichev Date: Fri, 27 Dec 2024 10:10:59 +0300 Subject: [PATCH] =?utf8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=BE?= =?utf8?q?=D0=BF=D1=82=D0=B8=D0=BC=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D0=B8=20?= =?utf8?q?=D0=B7=D0=B2=D0=BE=D0=BD=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/records/Users.php | 1 + 1 file changed, 1 insertion(+) diff --git a/erp24/records/Users.php b/erp24/records/Users.php index fc5f1264..0f33263c 100755 --- a/erp24/records/Users.php +++ b/erp24/records/Users.php @@ -558,6 +558,7 @@ class Users extends \yii\db\ActiveRecord $excludeSalesPhone = Sales::find() ->where(['>=', 'date', date('Y-m-d', strtotime("$startDate -$step2 days"))]) ->andWhere(['<=', 'date', date('Y-m-d', strtotime("$startDate -$step3 days"))]) + ->andWhere(['phone' => $whatsappPhones]) ->distinct('phone') ->select('phone') ->column(); -- 2.39.5