master-detail example with a single filling form

Hello ,

I want to create an invoice with header and detail but I don't know how to do it
I took you if you could send me a master-detail example with a single filling form

Thank you