function to choose whether the invoice will be generated with all lesson dates or 1 line = 1 name = number of lessons = 1 amount.