How to set child table field value based on other field in same doctype

this my code