fix: Check for tax category
This commit is contained in:
parent
ca34eec2d6
commit
7c7c084159
@ -176,7 +176,7 @@ def make_item_tax_template(company_name, template):
|
|||||||
def make_tax_category(tax_category):
|
def make_tax_category(tax_category):
|
||||||
""" Make tax category based on title if not already created """
|
""" Make tax category based on title if not already created """
|
||||||
doctype = 'Tax Category'
|
doctype = 'Tax Category'
|
||||||
if not frappe.db.exists(doctype, tax_category):
|
if not frappe.db.exists(doctype, tax_category['title']):
|
||||||
tax_category['doctype'] = doctype
|
tax_category['doctype'] = doctype
|
||||||
doc = frappe.get_doc(tax_category)
|
doc = frappe.get_doc(tax_category)
|
||||||
doc.flags.ignore_links = True
|
doc.flags.ignore_links = True
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user