From: Vladimir Fomichev Date: Wed, 4 Sep 2024 10:06:17 +0000 (+0300) Subject: исправление проверки поля на пустое X-Git-Tag: 1.4~8^2~1 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=f4dad087bf75187da8218264f41922a2471c85c9;p=erp24_rep%2Fyii-erp24%2F.git исправление проверки поля на пустое --- diff --git a/erp24/services/MotivationService.php b/erp24/services/MotivationService.php index fff4ee00..9e60fdaf 100644 --- a/erp24/services/MotivationService.php +++ b/erp24/services/MotivationService.php @@ -1403,7 +1403,7 @@ class MotivationService ->where(['store_id' => $storeId, 'operation' => 'Возврат']) ->andWhere(['>=', 'date', $startDate]) ->andWhere(['<=', 'date', $endDate]) - ->andWhere(['is not', 'sales_check', '']) // Проверяем, что поле sales_check не пустое + ->andWhere(['is not', 'sales_check', null]) // Проверяем, что поле sales_check не пустое ->asArray() ->all();