From: fomichev Date: Wed, 18 Dec 2024 15:09:50 +0000 (+0300) Subject: Исправление выборки продаж за дату (мес-день) по всем годам X-Git-Tag: 1.7~94^2~60 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=d209a78bc44acd22c8231bda72adfdbe9f122086;p=erp24_rep%2Fyii-erp24%2F.git Исправление выборки продаж за дату (мес-день) по всем годам --- diff --git a/erp24/records/Users.php b/erp24/records/Users.php index 4aaf17fd..749ebb99 100755 --- a/erp24/records/Users.php +++ b/erp24/records/Users.php @@ -303,7 +303,7 @@ class Users extends \yii\db\ActiveRecord $salesPhone = Sales::find() ->where(new \yii\db\Expression("TO_CHAR(date, 'MM-DD') = :monthDay", [':monthDay' => $monthDay])) - ->andWhere(new \yii\db\Expression("date <= NOW()")) + //->andWhere(new \yii\db\Expression("date <= NOW()")) ->distinct('phone') ->select('phone') ->column();