How do data reference from one doctype to another occur Example data like items and supplier , amount and quantity to Purchase Order. from Cash requisition when i click the create purchase order button.
There is a large and robust API available, in both python and javascript. Have you checked the documentation?
What part specifically can i check?