Update erpnext/erpnext_integrations/taxjar_integration.py
Co-authored-by: Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com>
This commit is contained in:
@@ -172,8 +172,7 @@ def set_sales_tax(doc, method):
|
|||||||
return
|
return
|
||||||
|
|
||||||
# check if delivering within a nexus
|
# check if delivering within a nexus
|
||||||
nexus_list = frappe.get_doc('TaxJar Settings').get("nexus")
|
if not frappe.db.get_value('TaxJar Nexus List', {'region_code': tax_dict["to_state"]})
|
||||||
if tax_dict["to_state"] not in [nex.region_code for nex in nexus_list]:
|
|
||||||
return
|
return
|
||||||
|
|
||||||
tax_data = validate_tax_request(tax_dict)
|
tax_data = validate_tax_request(tax_dict)
|
||||||
|
|||||||
Reference in New Issue
Block a user