Extend the storage to capture inventory from intercompany trades by products or product groups. Data should be captured from input screens. Capture percentage margin by a percentage margin by the legal entity, partner entity and product combination and compute the unrealized profit on inventory by this.