Forum Academy Marketplace Showcase Pricing Features

Form for capturing or displaying parent child relationship data

I am not able to visualize what elements can I use to build a webform that will store the data which is parent , child relationship data
Example Invoice with multiple products are sold in one invoice.
Search and edit or create a new invoice .

Pl help I am stuck , I may be wrong but as per me data type could be Inv Master and Inv Detail.
Having parent child relationship one invoice can have multiple line items