]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-228] contest001 поправлены рамки и сумма 3000 origin/feature_smirnov_erp-228_contest001_10_15_to_01_15
authorAlexander Smirnov <fredeom@mail.ru>
Thu, 17 Oct 2024 11:11:14 +0000 (14:11 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Thu, 17 Oct 2024 11:11:14 +0000 (14:11 +0300)
erp24/scripts/tasks/task_09_contest001_update.php

index 47dfb979ae523927abeb1f460b6a94fb0f27146e..23f354b3dab6e50c4f44c89e2ecdf6ed7a45501c 100644 (file)
@@ -56,9 +56,9 @@ try {
         $infoText .= ' test ';
 
         //////////////////////////////////////////////
-        $sales = Sales::find()->where(['>', 'date', '2024-04-15 00:00:00'])->andWhere(['<=', 'date', '2024-08-15 23:59:59'])
-            ->andWhere(['operation' => 'Продажа'])->andWhere(['>=', 'summ', '2500'])->orderBy(['date' => SORT_ASC])->all();
-        $returns = Sales::find()->where(['>', 'date', '2024-04-15 00:00:00'])->andWhere(['<=', 'date', '2024-08-15 23:59:59'])
+        $sales = Sales::find()->where(['>', 'date', '2024-10-15 00:00:00'])->andWhere(['<=', 'date', '2025-01-15 23:59:59'])
+            ->andWhere(['operation' => 'Продажа'])->andWhere(['>=', 'summ', '3000'])->orderBy(['date' => SORT_ASC])->all();
+        $returns = Sales::find()->where(['>', 'date', '2024-10-15 00:00:00'])->andWhere(['<=', 'date', '2025-01-15 23:59:59'])
             ->andWhere(['operation' => 'Возврат'])->all();
 
         $returnCheckIds = [];