Field referencing between doctypes

frappe.ui.form.on(‘Cash Requisition’, {
refresh: function(frm) {
if (!frm.is_new()) {
// Add a grouped “Create” button and dropdown options
frm.add_custom_button(__(‘Purchase Order’), function() {
// Action for Create Purchase Order
frappe.new_doc(‘Purchase Order’);
}, __(‘Create’)); // Grouped under “Create”

        frm.add_custom_button(__('Payment Entry'), function() {
            // Action for Create Payment Entry
            frappe.new_doc('Payment Entry');
        }, __('Create')); // Grouped under "Create"

        frm.add_custom_button(__('Purchase Invoice'), function() {
            // Action for Create Purchase Invoice
            frappe.new_doc('Purchase Invoice');
        }, __('Create')); // Grouped under "Create"
    }
}

});
I have created buttons for Purchase Order, Purchase Invoice under Create button. I want when l click Purchase Order, data like Supplier, Required by, Items,Cost center from the cash requisition be copied to Purchase Order and the Purchase Invoice

Please check the reference: How open new doc with all data in object - #2 by NCP

VIdeo reference: How open new doc with all data in object - #5 by NCP