Here are the high level steps just to give you an idea:
-
Create a custom doctype (child-table)- call it Purchase Invoice Shipments - see here
https://erpnext.org/docs/user/manual/en/customize-erpnext/custom-doctype -
Link the purchase receipt information to new custom doctype.
-
Add custom field called table and link to the new custom doctype.
-
You can enter the purchase receipt numbers like you enter purchase invoice items.
Regards