Use this function to create a preliminary invoice based on invoiceable transactions.
The transactions you want to include on the Invoice, must have the status Invoiceable.
As a result of this entry, an invoice with preliminary status (and a preliminary Invoice Number) is created. This invoice is now ready to be released.