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

How to add options to the VatCodeFactory (FinderFactory) #54

Closed
roelandkuiper opened this issue Aug 12, 2016 · 2 comments
Closed

How to add options to the VatCodeFactory (FinderFactory) #54

roelandkuiper opened this issue Aug 12, 2016 · 2 comments

Comments

@roelandkuiper
Copy link
Contributor

When using the VatCodeFactory (or another that uses the Finder), you can see the $options argument. I tried to add the option 'office', because the Finder needs this. Without it, it will use the default office set in Twinfield.

Now.. I thought that this $options array would look like this:

array(
   "office" => "NL12345", // the office code in Twinfield
   "vattype" => "sales"
)

Well no, that didn't work. Now with a lot of frustration and testing I found out that this array works for the finder options:

array(
   "ArrayOfString" => array(
                         array("office", "NL12345"),
                         array("vattype", "sales")
   )
)

I'm not sure if this is the right way of handling this, but it works. Hopefully this comment is helpful for others that are trying to use $options for the Finder.

@julesbloemen
Copy link

Thanks! Had the same issue!

@remcotolsma
Copy link
Member

We are currently cleaning up old open issues within the @pronamic organization and that is how we came across this issue, this may already have been resolved in the https://github.com/php-twinfield/twinfield library.

@remcotolsma remcotolsma closed this as not planned Won't fix, can't repro, duplicate, stale Sep 13, 2023
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

3 participants