How to show Sales Order details in Sales Invoice?

I would like to bring the Sales Order details like Customer’s PO and Shipping Address details over to the Sales Invoice.

I tried the custom script on doc type “Sales Invoice” and then realized that Sales Order is linked to “Sales Invoice Item”.

Now my requirement is simple, how to write a script on doc type “Sales Invoice” so when “Get items from” Sales Order action is done by user, I get the Shipping Address only for the first Sales Order used in the Invoice being created?

Thank you