Hi All,
I tried with this code to get child table stock entry detail in document of Stock Entry
cur_frm.cscript.custom_validate = function(doc) {
if(doc.purpose == "Material Transfer") {
var item_details = frappe.get_doc("Stock Entry Detail",{parent:cur_frm.doc});
console.log('item_details', item_details);
}
}
There are two entries in Stock Entry Detail, but I am getting only one object in console. Here is a screenshot.
Kindly tell me how to solve this.
Thanks.