Add id parent/child tracking of ledger entries and remove children.