]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-331] debug final
authorAlexander Smirnov <fredeom@mail.ru>
Mon, 10 Mar 2025 14:11:47 +0000 (17:11 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Mon, 10 Mar 2025 14:11:47 +0000 (17:11 +0300)
erp24/api2/controllers/DataController.php

index 9e7442757d367fe166182929adceee3327540aa3..d81665a946a6e060aec38068a71719b40185c38b 100644 (file)
@@ -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' => '',