rangka / quickbooks

PHP Library for connecting to QuickBooks.
MIT License
8 stars 11 forks source link

Fix load-function for Preferences service #11

Closed jnstr closed 7 years ago

jnstr commented 7 years ago

According to the Quickbooks documentation, the URI for the Preferences detail is "/company/:companyId/preferences". The default load function generated the URI in the format "/company/:companyId/preferences/:companyId", resulting in an API error.

This PR fixes this.

khairulashraff commented 7 years ago

Apparently I've been supplying null on my playground and it works. This is better as $id should not be required in this case.

Thanks @jnstr.