fakturoid / fakturoid-php

Fakturoid PHP bindings
https://www.fakturoid.cz/api
MIT License
30 stars 16 forks source link

Searching for Invoice's tags with query specified returns unfiltered results #14

Closed marecektn closed 7 years ago

marecektn commented 7 years ago

I am trying to search for Invoices with specified filtered parameter (I am curious about tag parameter)

This is how my search call for subjects looks like:

$tag = 'zzz-www-333';
$invoices = $fakturoid->search_invoices(array('query' => $tag));

The issue is, that first 20 invoices is returned, but these are no filtered according to search query. I do have invoice with that tag in the system already (I do know by fetching unfiltered invoices and filtering manually)

Thanks for help 💪

marecektn commented 7 years ago

when using search query for Subject name, searching works just fine.. the problem is with tags only

ollie commented 7 years ago

Hello, I'm trying to reproduce this locally and I'm not having much luck. Could you please try your script again and then send us an email to podpora@fakturoid.cz with your account slug (you don't have to use english there)? That way I can pull it out from logs easily and start debugging.

Thanks!

ollie commented 7 years ago

There is a problem with our search engine which doesn't like dashes in the query and returns an empty array. It's not this library's issue so I'll close this here and try to fix the issue when there is time.