Browse Source

fix: Patch

develop
Deepesh Garg 3 years ago
parent
commit
2d19e2d54b
  1. 2
      erpnext/patches.txt
  2. 4
      erpnext/patches/v13_0/custom_fields_for_taxjar_integration.py

2
erpnext/patches.txt

@ -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

4
erpnext/patches/v13_0/custom_fields_for_taxjar_integration.py

@ -7,14 +7,10 @@ from erpnext.erpnext_integrations.doctype.taxjar_settings.taxjar_settings import
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")

Loading…
Cancel
Save