Stock entry : Material receipt


ERPNext: v12.26.0 (version-12)

Frappe Framework: v12.23.0 (version-12)

I do a purchase cycle–
Material request → Purchase order

Then when I receive it at the warehouse , I would like to be able to link the stock entyr to a
purchase order number. Abd according to this thread…

There should be a field in the Items table to enter the PO. But I do not see it.

I went to look in the Doctype “Stock Entry” and there is a PO field but it says …
“depends on doc_purpose==send_to_subcontractor”

How do I make a material receipt and link it to a purchase order ?