Adding items onto a Invoice

I am working on a invoice management system. I need to find a way to dynamically add items on an invoice.

need help,

thanks