Converting COGS to Inventory

Converting COGS to Inventory

Hi,

Two items were created as COGS instead of Inventory items, POs generated and received and stock sold and invoiced.

How to convert the COGS to inventory so that it correctly reflects in P&L?