]> gitweb.erp-flowers.ru Git - yii-erp24/.git/commitdiff
contest001 update
authorAlexander Smirnov <fredeom@mail.ru>
Sun, 28 Apr 2024 11:07:02 +0000 (14:07 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Sun, 28 Apr 2024 11:07:02 +0000 (14:07 +0300)
erp24/scripts/tasks/task_09_contest001_update.php

index 78dd7edacf84b6e1eb120a73216bcf085285239b..47dfb979ae523927abeb1f460b6a94fb0f27146e 100644 (file)
@@ -56,9 +56,9 @@ try {
         $infoText .= ' test ';
 
         //////////////////////////////////////////////
-        $sales = Sales::find()->where(['>', 'date', '2024-01-15 00:00:00'])->andWhere(['<=', 'date', '2024-03-30 23:59:59'])
+        $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-01-15 00:00:00'])->andWhere(['<=', 'date', '2024-03-30 23:59:59'])
+        $returns = Sales::find()->where(['>', 'date', '2024-04-15 00:00:00'])->andWhere(['<=', 'date', '2024-08-15 23:59:59'])
             ->andWhere(['operation' => 'Возврат'])->all();
 
         $returnCheckIds = [];