Generate a sales invoice with a dynamic table