In the timesheet i have created a custom field in the timesheet details child table, is it possibe to access the custom field from the salary slip timesheet child table
here is my sample code.
frappe.ui.form.on("Salary Slip", "onload", function(frm) {
frappe.model.with_doc("Salary Slip", frm.doc.trigger, function() {
var tabletransfer= frappe.model.get_doc("Timesheet", frm.doc.Trigger)
$.each(qmtable.timesheet_detail, function(index, row){
d = frm.add_child("Salary Slip Timesheet");
d.checkedby = row.checkedby;
//d.field2 = row.fieldb;
cur_frm.refresh_field("Salary Slip Timesheet");
})
});
});