You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
The text was updated successfully, but these errors were encountered:
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.
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: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:
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.The text was updated successfully, but these errors were encountered: