From 231314020e4058dd131f6b7486e5afdfed3722ed Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Fri, 6 Dec 2024 10:05:55 +0300 Subject: [PATCH] view = 0 in Dashboard/sales --- erp24/actions/dashboard/SalesAction.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.39.5