]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
исправление проверки поля на пустое
authorVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Wed, 4 Sep 2024 10:06:17 +0000 (13:06 +0300)
committerVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Wed, 4 Sep 2024 10:06:17 +0000 (13:06 +0300)
erp24/services/MotivationService.php

index fff4ee005f7815d140b7a1dcad4dd736073a56db..9e60fdaf9ba83a7c3668a7eeb2509fede9076afc 100644 (file)
@@ -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();