Customise New Doctype

I am creating a custom doctype for my Retun Delivery Challan (RDC)
RDC is used for
To deliver material to subcontract for rework
in the above case, i issue a PO to a subcontractor
he sends the material to me after processing
inspection is done at our end
we have to send some quantity back to subcontract for reprocessing due to rework
I am stuck at the doctype creation
in the new doctype that iam creating, i have to select the PO and the other details like Name and address of the Subcontractor, Material details has to be auto populated
How do i do this

write a server side function that will fetch the data and call it on value change of the PO.

1 Like