From: Alexander Smirnov Date: Mon, 10 Mar 2025 14:11:47 +0000 (+0300) Subject: [ERP-331] debug final X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=2921696bcc83edf5206a218387e1c3bf7e66e26c;p=erp24_rep%2Fyii-erp24%2F.git [ERP-331] debug final --- diff --git a/erp24/api2/controllers/DataController.php b/erp24/api2/controllers/DataController.php index 9e744275..d81665a9 100644 --- a/erp24/api2/controllers/DataController.php +++ b/erp24/api2/controllers/DataController.php @@ -735,7 +735,7 @@ class DataController extends BaseController ])->andWhere([ 'between', 'creation_date', - date('Y-m-d 00:00:00', strtotime('-3 weeks', time())), + date('Y-m-d 00:00:00', strtotime('-3 days', time())), date('Y-m-d 23:59:59', time()) ]) ->all(); @@ -746,7 +746,7 @@ class DataController extends BaseController $itemsFiltered = []; $summ = 0; foreach ($items as $item) { - $product1c = Products1c::find()->where(['article' => $item['offer_id']])->one(); + $product1c = Products1c::find()->where(['articule' => $item['offer_id']])->one(); $itemsFiltered []= [ 'product_id' => $product1c->id ?? '', 'color' => '',