How to Fetch details from one child table to another child table

Hello,

I have customised the Sales Order form by adding a child table called “Jersey New”

Also, I have customised the Sales Invoice form by adding the child table called “Jersey5”

So, my requirement is to fetch the details from the child table in the Sales Order Form to Sales Invoice form. The fields of the child table in the sales invoice are set with the field type as Read Only.

How can I achieve this?

Please Help.

Below is the screenshot

Please help.

Thanks & Regards,
Sujay

Hi,

I have tried with this code, but this code works only for non child tables but not for child tables.

cur_frm.add_fetch(‘sales_order’,‘jersey’,‘jersey2’)

I couldn’t understand it, can you please help me in custom script??

https://github.com/frappe/frappe/wiki/(Client-Side-Scripting)Fetching-child-tables
Refer this link.

1 Like