It is intricate but may be worthwhile you investing the time to learn how it works in order to generate the invoices as you want them (or close to it).