Lets add some figures to your question to make it more understandable. Suppose the subsidiary sold goods costing $100,000 for $120,000 to the parent and 50% of those goods are still in the books of the parent (are unsold by the parent). The parent holds 60% shares of the subsidiary.
So in the SOCI the figures of revenue and cost of sales will be reduced by 120,000. Then the cost of sales will be added back by the URP which in this case will be 10,000, so overall the cost of sales will reduce by 110,000.
Now in the SOFP, the CRE and NCI will be debited by the URP according to thier share and the Inventory will be credited: Dr. CRE 6,000 Dr. NCI 4,000 Cr. Inventory 10,000