get_count=frappe.db.sql(f"""select name from `tabFeature Finder Specification` where parent='{doc_name}' and feature_type='{val.get('feature_type')}'""",as_dict=1)
get_count=frappe.db.sql(f"""select name from `tabFeature Finder Specification` where parent='{doc_name}' and feature_type='{val.get('feature_type')}'""",as_dict=1)
get_count=len(get_count)+1
get_count=len(get_count)+1
frappe.log_error("displayorder",str(get_count))
result=frappe.get_doc("Feature Finder",doc_name)
result.tab_ref=tab_ref
result.save()
frappe.db.commit()
ifval.get('name')!=None:
ifval.get('name')!=None:
doc=frappe.get_doc("Feature Finder Specification",val['name'])
doc=frappe.get_doc("Feature Finder Specification",val['name'])
get_count=frappe.db.sql(f"""select name from `tabFeature Finder Images` where parent='{doc_name}' and feature_type='{val.get('feature_type')}'""",as_dict=1)
get_count=frappe.db.sql(f"""select name from `tabFeature Finder Images` where parent='{doc_name}' and feature_type='{val.get('feature_type')}'""",as_dict=1)
get_count=len(get_count)+1
get_count=len(get_count)+1
result=frappe.get_doc("Feature Finder",doc_name)
result.tab_ref=tab_ref
result.save()
frappe.db.commit()
ifval.get('name')!=None:
ifval.get('name')!=None:
doc=frappe.get_doc("Feature Finder Images",val['name'])
doc=frappe.get_doc("Feature Finder Images",val['name'])
get_count=frappe.db.sql(f"""select name from `tabFeature Finder Content` where parent='{doc_name}' and feature_type='{val.get('feature_type')}'""",as_dict=1)
get_count=frappe.db.sql(f"""select name from `tabFeature Finder Content` where parent='{doc_name}' and feature_type='{val.get('feature_type')}'""",as_dict=1)
get_count=len(get_count)+1
get_count=len(get_count)+1
result=frappe.get_doc("Feature Finder",doc_name)
result.tab_ref=tab_ref
result.save()
frappe.db.commit()
ifval.get('name')!=None:
ifval.get('name')!=None:
doc=frappe.get_doc("Feature Finder Content",val['name'])
doc=frappe.get_doc("Feature Finder Content",val['name'])