How to fetch other child doc values in Jinja

Hi

I tried with blow to fetch values from Delivery Note Items but it’s not working

{%- set item_doc = frappe.get_doc(“Delivery Note Item”, row.item_code) -%}
{%- set item_doc = frappe.get_doc(“Delivery Note Item”, {“item_code”: row.item_code}) -%}

any suggestions?

It works in a similar way as in the below post. Please refer you will get a detailed insight.

How to fetch table from master?

[Minor Tutor] a Table with Child Table ? Let do the impossible

Try This
{%- for row in doc.items -%}
{{ row.item_name }}
{{ row.qty }}
{%- endfor -%}

Hi
Thanks for your reply!
but you replied for same doc child table i am asking for other doc child table