How do I add a field to a child table and get the value specified in the child table

Hello:

I have customized fields in the child table. How can I get the data in other fields?

@Wayne

Considering you want to set values in Purchase Receipt Item Field

frappe.ui.form.on("Purchase Receipt Item", {
    your_child_table_field_name: function (frm, cdt, cdn) {
       let row = locals[cdt][cdn];
       frappe.model.set_value(cdt, cdn, "your_child_table_field_name_where_you_want_to_set_value", row.your_child_table_field_name);
 }
});

Thank you very much for your reply. Now I have a new problem, which is that the floating point format cannot be called by the custom print template, but the data format can be called, please, how can I call the floating point format?

Did not get it @Wayne can you please explain more


when I change “row. every_qty” to “row. qty” ,It doesn’t work,whether it is because “row. qty” is a float, “row. every_qty” is a data ?
Is there any way to call the default floating-point number of the system subtable?

Thank you!