-
Notifications
You must be signed in to change notification settings - Fork 44
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
avalara_response[:totalTax] is always nil #96
Comments
avalara_response[:totalTax]
returns nil without indifferent access enabledavalara_response[:totalTax]
returns but not as intended
avalara_response[:totalTax]
returns but not as intended
@prwhitehead thanks for the contributions. The team will be able to take a look at this shortly. @acreilly @jasonfb |
@prwhitehead Which branch are you working off of? The reasoning behind this is because if either tax calculation or document committing are set to false: Or if an error arises: We want a quick way to return 0 since there will be no avalara_response['lines'] If avalara_response[:totalTax] is not found in the hash, then that is because it has calculated properly. |
@acreilly sorry I dont think I explained as well as I could. The hash is not set |
The conditional
return 0 if avalara_response[:totalTax] == 0.0
, but not as intended, asavalara_response[:totalTax]
always returnsnil
because it will not be found in the hash.Should be...
The text was updated successfully, but these errors were encountered: