@Anjalijangid change to total cbm to fieldtype float
you are making changes in the cbm field and in refresh field you have written items…??
@Anjalijangid try this @Anjalijangid try this code frappe.ui.form.on(‘Quotation’, {
validate: function(frm,cdt,cdn) {
let row = locals[cdt][cdn];
row.custom_total_cbm = row.cbm * row.qty;
frm.refresh_field(“items”);
}
})
i take wrong fieldname total_cbm instead of custom_total_cbm
instead of item use the field name of total cbm
Its working now, But cant not change decimal values
I need three values after decimal
I have zero knowledge of coding.
Done, still same issue
Frappe Community is here for the assistance
share the image of your doctype properties
Go to the customize form of your child table doctype and select that particular that field and find the field
find this field and select as per requirements
Not working, its still showing 6 only
Where to add this ???
@Anjalijangid try this code frappe.ui.form.on(‘Quotation’, {
validate: function(frm,cdt,cdn) {
let row = locals[cdt][cdn];
row.custom_total_cbm = (row.cbm * row.qty).toFixed(3);
frm.refresh_field(“items”);
}
})
i take wrong fieldname total_cbm instead of custom_total_cbm