1
0
mirror of synced 2024-11-21 12:56:11 +03:00

Add manager filter (#276)

This commit is contained in:
Uryvskiy Dima 2023-01-26 13:49:36 +03:00 committed by GitHub
parent 6a07f5220b
commit 4c61df9701
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 20 additions and 10 deletions

1
.gitignore vendored
View File

@ -9,6 +9,7 @@
/.idea/*
/intaro.retailcrm/log/*
/tmp/
/vendor/
.env
.phpunit.result.cache

View File

@ -1,3 +1,6 @@
## 2023-01-10 v.6.1.15
- Добавлен фильтр активности менеджеров
## 2023-01-24 v.6.1.14
- Исправление обновления и отправки заказа в црм систему

View File

@ -44,3 +44,8 @@ endif
cleanup:
@rm -rf $(ROOT_DIR)/release/$(CURRENT_VERSION)
@rm $(ROOT_DIR)/release/$(CURRENT_VERSION).tar.gz
run_local_tests:
docker-compose up -d --build
docker exec app_test make install_bitrix deps test
docker-compose down

View File

@ -1,6 +1,7 @@
version: '3'
services:
bitrix:
container_name: app_test
build: ./.docker
env_file:
- .env

View File

@ -1 +1 @@
- исправление отправки заказа в црм систему
- Добавлен фильтр активности менеджеров

View File

@ -1,6 +1,6 @@
<?php
$arModuleVersion = [
'VERSION' => '6.1.14',
'VERSION_DATE' => '2023-01-24 14:30:00'
'VERSION' => '6.1.15',
'VERSION_DATE' => '2023-01-26 12:00:00'
];

View File

@ -135,7 +135,7 @@ class ManagerService
*/
private function getCrmUsersPage(int $pageNumber): array
{
$response = $this->client->usersList([], $pageNumber);
$response = $this->client->usersList(['active' => 1], $pageNumber);
if (!$response->isSuccessful()) {
return [];