consolibyte / quickbooks-php

QuickBooks Integration for PHP
Eclipse Public License 1.0
458 stars 338 forks source link

Quick book online oauth 2.0 not able to load tax code using following query. #193

Open taxcoderead opened 6 years ago

taxcoderead commented 6 years ago

$TaxRateService = new QuickBooks_IPP_Service_TaxRate(); $taxRates = $TaxRateService->query($Context, $realm, "SELECT * FROM TaxRate WHERE Id IN('$id')");

We first get the taxcode from quickbooks using following query:- $TaxCodeService = new QuickBooks_IPP_Service_TaxCode(); and then get the tax rates for each tax code using the following query $TaxRateService = new QuickBooks_IPP_Service_TaxRate(); But It returns NULL and we are not getting any tax rates for the tax codes

keith-chargeover commented 6 years ago

Can you post the last XML request/response sent to/from QuickBooks?

https://github.com/consolibyte/quickbooks-php/blob/master/docs/partner_platform/example_app_ipp_v3/debugging.php#L35

keith-chargeover commented 6 years ago

Also, please copy/paste the actual code you're having trouble with. The explanation you gave makes no sense --

This does NOT do a query or get tax codes: $TaxCodeService = new QuickBooks_IPP_Service_TaxCode();

And this does NOT get tax rates either: $TaxRateService = new QuickBooks_IPP_Service_TaxRate();