]> gitweb.erp-flowers.ru Git - yii-erp24/.git/commitdiff
remove operation_sale where both should be accepted
authorAlexander Smirnov <fredeom@mail.ru>
Wed, 15 May 2024 16:16:21 +0000 (19:16 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Wed, 15 May 2024 16:16:21 +0000 (19:16 +0300)
erp24/api3/core/services/ReportService.php

index 6d801d2a52319abbb4e9b24fc4e79c49bb897fa7..f40acf4d4c6ad8921d04707b45e18a018d8bb0b0 100644 (file)
@@ -222,7 +222,6 @@ class ReportService
                     ->leftJoin('sales_products p', 'p.check_id = s.id')
                     ->where(['between', 's.date', $date_start, $date_end])
                     ->andWhere(['order_id' => ['', '0']])
-                    ->andWhere(['operation' => Sales::OPERATION_SALE])
                     ->andWhere(['p.product_id' => array_keys($products1c)])
                     ->groupBy(['s.store_id', 's.admin_id'])
                     ->asArray()->all();
@@ -648,7 +647,6 @@ class ReportService
                         ])                        ->leftJoin('sales_products p', 'p.check_id = s.id')
                         ->where(['between', 's.date', $date_start, $date_end])
                         ->andWhere(['order_id' => ['', '0']])
-                        ->andWhere(['operation' => Sales::OPERATION_SALE])
                         ->andWhere(['p.product_id' => array_keys($products1c)])
                         ->andWhere(['store_id' => $data->stores])
                         ->groupBy(['store_id'])