mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
fix: Update pacthes.txt
This commit is contained in:
@@ -7,13 +7,14 @@ from erpnext.erpnext_integrations.doctype.taxjar_settings.taxjar_settings import
|
|||||||
|
|
||||||
|
|
||||||
def execute():
|
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'])
|
company = frappe.get_all('Company', filters = {'country': 'United States'}, fields=['name'])
|
||||||
if not company:
|
if not company:
|
||||||
return
|
return
|
||||||
|
|
||||||
frappe.reload_doctype("TaxJar Settings", force=True)
|
|
||||||
|
|
||||||
TAXJAR_CREATE_TRANSACTIONS = frappe.db.get_single_value("TaxJar Settings", "taxjar_create_transactions")
|
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_CALCULATE_TAX = frappe.db.get_single_value("TaxJar Settings", "taxjar_calculate_tax")
|
||||||
TAXJAR_SANDBOX_MODE = frappe.db.get_single_value("TaxJar Settings", "is_sandbox")
|
TAXJAR_SANDBOX_MODE = frappe.db.get_single_value("TaxJar Settings", "is_sandbox")
|
||||||
@@ -21,8 +22,6 @@ def execute():
|
|||||||
if (not TAXJAR_CREATE_TRANSACTIONS and not TAXJAR_CALCULATE_TAX and not TAXJAR_SANDBOX_MODE):
|
if (not TAXJAR_CREATE_TRANSACTIONS and not TAXJAR_CALCULATE_TAX and not TAXJAR_SANDBOX_MODE):
|
||||||
return
|
return
|
||||||
|
|
||||||
frappe.reload_doctype("Product Tax Category")
|
|
||||||
|
|
||||||
custom_fields = {
|
custom_fields = {
|
||||||
'Sales Invoice Item': [
|
'Sales Invoice Item': [
|
||||||
dict(fieldname='product_tax_category', fieldtype='Link', insert_after='description', options='Product Tax Category',
|
dict(fieldname='product_tax_category', fieldtype='Link', insert_after='description', options='Product Tax Category',
|
||||||
|
|||||||
Reference in New Issue
Block a user