Skip to content

Commit

Permalink
Update erpnext/erpnext_integrations/taxjar_integration.py
Browse files Browse the repository at this point in the history
Co-authored-by: Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com>
  • Loading branch information
nemesis189 and deepeshgarg007 authored Sep 16, 2021
1 parent 569cf43 commit ecb92e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions erpnext/erpnext_integrations/taxjar_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@ def set_sales_tax(doc, method):
return

# check if delivering within a nexus
nexus_list = frappe.get_doc('TaxJar Settings').get("nexus")
if tax_dict["to_state"] not in [nex.region_code for nex in nexus_list]:
if not frappe.db.get_value('TaxJar Nexus List', {'region_code': tax_dict["to_state"]})
return

tax_data = validate_tax_request(tax_dict)
Expand Down

0 comments on commit ecb92e9

Please sign in to comment.