Fetch data from child table to another

Hi, I’m new around here
i have a child table called RIB I want to copy the entire table and add it to another doctype and when i select a client i want this table to show
Any Ideas? !help