Accessing a DocType's child table from another DocType's print format

Hi. I am trying to access the Items table located in a specific Purchase Order from Purchase Receipt and print out some of its info in Purchase Receipt’s print format. Could someone guide me as to how I can accomplish this?

For example, how would I print the Received Qty of each item in this Purchase Order item table, in Purchase Receipt’s print format?

EDIT: For anyone who had the same question, I resolved this by calling frappe.get_doc(doctype, name) to retrieve the Document object and accessing doc.items

The Received Quantity is available on Purchase Order and also in Purchase Receipt.
Please check it.

Purchase Order:

Purchase Receipt:

And for the print format, please create a custom print format and add the columns.

Then reload and check it.

Thank You!

Thank you for your answer.

My issue is that the received quantity may be different in the Purchase Order and Purchase Receipt due to partially completed orders. Hence, the main question was: