Based on the studies that I have done so far, my understanding of the treatment ....
If the parent sold to the sub or vice-versa, the entire sales is remove from the "Revenue" balance and the "Cost of Sales" balance in the Consolidated Income Statement.
After doing that, you have to account for the URP if any by adding it to cost of sales and then subtracting it from the inventory balance in the SOFP.
Hope I was helpful.
thank you very much Donald