Update erpnext/erpnext_integrations/taxjar_integration.py
Co-authored-by: Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com>
This commit is contained in:
parent
435a5e4fa3
commit
11bd42467e
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user