Merge pull request #5785 from rohitwaghchaure/batch_added_in_pos
[POS] Added batch and fixed issue of searching serial no #5779
diff --git a/erpnext/accounts/doctype/sales_taxes_and_charges_template/sales_taxes_and_charges_template.py b/erpnext/accounts/doctype/sales_taxes_and_charges_template/sales_taxes_and_charges_template.py
index 351cd56..28964bb 100644
--- a/erpnext/accounts/doctype/sales_taxes_and_charges_template/sales_taxes_and_charges_template.py
+++ b/erpnext/accounts/doctype/sales_taxes_and_charges_template/sales_taxes_and_charges_template.py
@@ -12,8 +12,9 @@
valdiate_taxes_and_charges_template(self)
def valdiate_taxes_and_charges_template(doc):
- if not doc.is_default and not frappe.get_all(doc.doctype, filters={"is_default": 1}):
- doc.is_default = 1
+ # default should not be disabled
+ # if not doc.is_default and not frappe.get_all(doc.doctype, filters={"is_default": 1}):
+ # doc.is_default = 1
if doc.is_default == 1:
frappe.db.sql("""update `tab{0}` set is_default = 0