Fetch Items templates into items table in sales order

Dears
kindly your supports is appreciated to support me as i created new doc type called Item template to make template for group of items and i want to fetch the selected item template from this doctyoe to sales order items ( same concept of Sales tax templates )

what is suitable client script to fetch it to items table in sales order ???

1 Like

Tt might be helpful if you can describe why you think a item template is needed instead of using Item Groups or variants etc. What type of items and the process you are hopung to get in place.

we have like items packages ( 20 items or 30 items ) and we need to insert them once in sales order not each sales order insert them one by one .

so we need to make it as group of items and when we choose from template , its reflect all related items once.

Check product bundle feature…

Unfortunately , product bundle feature not show the list of products in sales order , and consider them as one product only >

this is not what i need , i need just put items templates items in the grid ,

Dears
i found article about fetching Fetch child table
and i converted the script to below

frappe.ui.form.on(“Sales Order”, “item_template”, function(frm) {
frappe.model.with_doc(“Item Template”, frm.doc.item_template, function() {
var tabletransfer= frappe.model.get_doc(“Item Template”, frm.doc.item_template)
$.each(tabletransfer.items, function(index, row){
d = frm.add_child(“Item Template Details”);
d.item_code = row.item_code;
cur_frm.refresh_field(“Item Template Details”);
});
})
});

but unfortunately nothing happend ?

any update on this?