Hi! I’m new to Clients Scripts and I need your help
I am creating a script for Doctype: Rental Billing. Within this “Rental Billing” Doctype, I need to select another doctype named “Rental Contract”. Rental Contract has a child table as below:
Upon selection of naming_series for “Rental Contract” in “Rental Billing” Doctype, how do you fetch the “Rate” in the child table above, and set the value of a field in “Rental Billing” as child table field “Rate” from doctype “Rental Contract”.
I wanted “Rate” field name from child table of “Rental Contract” Doctype to be fetched and set the data to “Rate per Hour” field name in “Rental Billing” Doctype.
I’m stumped! Please help.