ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

How to fetch other child doc values in Jinja


#1

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?


#2

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


#3

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


#4

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