Skip to content

Commit

Permalink
fix: Patch
Browse files Browse the repository at this point in the history
  • Loading branch information
deepeshgarg007 committed Oct 13, 2021
1 parent 5d4c919 commit 2d19e2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions erpnext/patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ erpnext.patches.v13_0.shopify_deprecation_warning
erpnext.patches.v13_0.migrate_stripe_api
erpnext.patches.v13_0.reset_clearance_date_for_intracompany_payment_entries
erpnext.patches.v13_0.einvoicing_deprecation_warning
execute:frappe.reload_doc("erpnext_integrations", "doctype", "TaxJar Settings")
execute:frappe.reload_doc("erpnext_integrations", "doctype", "Product Tax Category")
erpnext.patches.v13_0.custom_fields_for_taxjar_integration
erpnext.patches.v14_0.delete_einvoicing_doctypes
erpnext.patches.v13_0.set_operation_time_based_on_operating_cost
Expand Down
4 changes: 0 additions & 4 deletions erpnext/patches/v13_0/custom_fields_for_taxjar_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,10 @@


def execute():
frappe.reload_doctype("TaxJar Settings", force=True)
frappe.reload_doctype("Product Tax Category", force=True)

company = frappe.get_all('Company', filters = {'country': 'United States'}, fields=['name'])
if not company:
return


TAXJAR_CREATE_TRANSACTIONS = frappe.db.get_single_value("TaxJar Settings", "taxjar_create_transactions")
TAXJAR_CALCULATE_TAX = frappe.db.get_single_value("TaxJar Settings", "taxjar_calculate_tax")
TAXJAR_SANDBOX_MODE = frappe.db.get_single_value("TaxJar Settings", "is_sandbox")
Expand Down

0 comments on commit 2d19e2d

Please sign in to comment.