mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 10:11:20 +00:00
fix: Check for tax category
This commit is contained in:
@@ -179,7 +179,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
|
||||||
|
|||||||
Reference in New Issue
Block a user