Iam getting the parameters of one item as parameters for all item.
Here is my approach.
{% set break_loop = namespace(found=false) %}
{% for row1 in doc.items %}
{% set note = frappe.get_doc(“Delivery Note”, row1.delivery_note) %}
{%- for item in note.items -%}
{% if item.quality_inspection and not break_loop.found %}
{% set quality = frappe.get_doc(“Quality Inspection”, item.quality_inspection) %}
{%- for row in quality.readings -%}
{{ loop.index }}
{{ row.specification }}
{{ row.reading_value }}
{{ row.max_value }} ±
{{ row.min_value }}
{{ row.reading_1 }}
{{ row.reading_2 }}
{{ row.reading_3 }}
{{ row.reading_4 }}
{{ row.reading_5 }}
{{ row.reading_6 }}
{% set break_loop.found = true %}
{%- endfor %}
{% endif %}
{%- endfor %}
{% endfor %}
Anyone can help.
Thanks in advance