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