mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
chore: Add comments
This commit is contained in:
@@ -142,6 +142,9 @@ def make_taxes_and_charges_template(company_name, doctype, template):
|
|||||||
tax_row[fieldname] = default_value
|
tax_row[fieldname] = default_value
|
||||||
|
|
||||||
doc = frappe.get_doc(template)
|
doc = frappe.get_doc(template)
|
||||||
|
|
||||||
|
# Data in country wise json is already pre validated, hence validations can be ignored
|
||||||
|
# Ingone validations to make doctypes faster
|
||||||
doc.flags.ignore_links = True
|
doc.flags.ignore_links = True
|
||||||
doc.flags.ignore_validate = True
|
doc.flags.ignore_validate = True
|
||||||
doc.insert(ignore_permissions=True)
|
doc.insert(ignore_permissions=True)
|
||||||
@@ -171,6 +174,9 @@ def make_item_tax_template(company_name, template):
|
|||||||
tax_row['tax_rate'] = account_data.get('tax_rate')
|
tax_row['tax_rate'] = account_data.get('tax_rate')
|
||||||
|
|
||||||
doc = frappe.get_doc(template)
|
doc = frappe.get_doc(template)
|
||||||
|
|
||||||
|
# Data in country wise json is already pre validated, hence validations can be ignored
|
||||||
|
# Ingone validations to make doctypes faster
|
||||||
doc.flags.ignore_links = True
|
doc.flags.ignore_links = True
|
||||||
doc.flags.ignore_validate = True
|
doc.flags.ignore_validate = True
|
||||||
doc.insert(ignore_permissions=True)
|
doc.insert(ignore_permissions=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user