Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filter[expired] не работает в положении 0 #10

Closed
pozdeiev opened this issue Jan 24, 2016 · 1 comment
Closed

filter[expired] не работает в положении 0 #10

pozdeiev opened this issue Jan 24, 2016 · 1 comment

Comments

@pozdeiev
Copy link

Не смотря на указанный фильтр expired=0, в получаемом списке заказов присутствуют просроченные. Однако, expired=1 работает.

$crm=new \RetailCrm\ApiClient($url,$apiKey);
$filter=array();
print_r($crm->ordersList($filter)->__get('pagination'));
/*
Array
(   
    [limit] => 20
    [totalCount] => 9961
    [currentPage] => 1
    [totalPageCount] => 499
)
*/
$filter['expired']=0;
print_r($crm->ordersList($filter)->__get('pagination'));
/*
Array
(   
    [limit] => 20
    [totalCount] => 9961
    [currentPage] => 1
    [totalPageCount] => 499
)
*/
$filter['expired']=1;
print_r($crm->ordersList($filter)->__get('pagination'));
/*
Array
(   
    [limit] => 20
    [totalCount] => 8583
    [currentPage] => 1
    [totalPageCount] => 430
)
*/
@pozdeiev
Copy link
Author

Прошу прощения! Это проблема не библиотеки, а API. Куда жаловаться? (-:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant