]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-299 Изменить подсчёт продаж в личном кабинете сотрудника origin/feature_zozirova_erp-299_change_sales_sum
authormarina <m.zozirova@gmail.com>
Fri, 28 Mar 2025 11:57:13 +0000 (14:57 +0300)
committermarina <m.zozirova@gmail.com>
Fri, 28 Mar 2025 11:57:13 +0000 (14:57 +0300)
erp24/helpers/SalaryHelper.php
erp24/services/SalesService.php

index 541c65c9c84570db330ba0d88edfd17e2dc5c3e5..2d7cc885925391924799c1f4c066658c3c6155b0 100755 (executable)
@@ -192,7 +192,7 @@ class SalaryHelper
             ]
         );
 
-        if ($dateFrom >= '2025-01-01') {
+        if ($dateFrom >= '2025-03-01') {
             $command = $connection->createCommand("
             SELECT
                 sales.id,
index 33b037f2f83b1cfde8ab6638d7ba3a58017b4e43..aa1f367a820adb72996de5f2e9939e3b0012a0cf 100755 (executable)
@@ -1125,7 +1125,7 @@ class SalesService
         $connection = Yii::$app->getDb();
 
         if ($dateFrom > '2022-12-07') {
-            if ($dateFrom >= '2025-01-01') {
+            if ($dateFrom >= '2025-03-01') {
                 $command = $connection->createCommand("
                 SELECT
                     DISTINCT (sales.id),
@@ -1503,7 +1503,7 @@ class SalesService
                 ]
             );
 
-            if ($dateFrom >= '2025-01-01') {
+            if ($dateFrom >= '2025-03-01') {
                 $command = $connection->createCommand("
                 SELECT
                     DISTINCT (sales.id),