From: Alexander Smirnov Date: Fri, 6 Dec 2024 07:05:55 +0000 (+0300) Subject: view = 0 in Dashboard/sales X-Git-Tag: 1.7~190^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=231314020e4058dd131f6b7486e5afdfed3722ed;p=erp24_rep%2Fyii-erp24%2F.git view = 0 in Dashboard/sales --- diff --git a/erp24/actions/dashboard/SalesAction.php b/erp24/actions/dashboard/SalesAction.php index d9ab4a75..256da889 100755 --- a/erp24/actions/dashboard/SalesAction.php +++ b/erp24/actions/dashboard/SalesAction.php @@ -115,7 +115,11 @@ class SalesAction extends Action ->asArray() ->all(); - $city_stores = Products1c::getNamesByTip(); + $city_stores = Products1c::find() + ->select(['name', 'id']) + ->indexBy('id') + ->andWhere('tip=:tip', [':tip' => 'city_store']) + ->column(); $data_store_visitors = StoreVisitorsService::getVisitorsByDate($date1, $date2);