How to fetch Item Field Values to Sales Invoice Item

Hi,

I created a “Text Form” field in the doctype “item.” I’ve added this field to the Sales Invoice Item doctype.

How Can I get the values to sales invoice item which are already updated in item list.

__
Rgds…
Parag Kapoor

Keep Name of Field Same in both doctype.

Hi,

Check with this,

@shraddha

just more information to your solution :slightly_smiling_face:


add_fetch(link_fieldname, source_fieldname, target_fieldname)

1 Like

@vivek_ilexSquare @shraddha

Thanks for your solution but I’m little bit confused that where to write these codes.

cur_frm.add_fetch("item_code", "item_type", "item_type")

If you will provide me some detailed explanation as per my problem with Sales Invoice Item doctype, it would be really helpful for me.

Thanks!

@progShubham try this
Put this in a new Custom Script - > with doctype Sales Invoice
cur_frm.add_fetch(“item_code”, “text_form”, “text_form”)

3 Likes

@vivek

Thanks a lot sir. That works really great. :grinning: