avadev / AvaTax-Calc-REST-PHP

PHP sample for the AvaTax Calc REST API
Apache License 2.0
9 stars 28 forks source link

TaxDetail.class.php #2

Closed kyledye closed 10 years ago

kyledye commented 10 years ago

I am getting a "division by zero" on line number 64 when attempting to estimate sales tax for certain states. It works great with most addresses, but it seems that in both Alabama and Iowa. Could someone please take a look? Thanks in advance.

anyarms commented 10 years ago

Right you are! It was doing something funny for non-nexus jurisdictions. It should be fixed now (in SHA: 871c534f03fb81f9f295facc8a2ef1eea44f4934 ), but let me know if you're still seeing issues.

kyledye commented 10 years ago

Thanks for the quick response. This fixed the "division by zero" warning but I am still getting a Tax Rate of zero - which is a much bigger issue.

kyledye commented 10 years ago

Nevermind, we are good now - I apologize. They are non-nexus states for our company. Thank you!