MT#5879 Make possible to restart generate_invoices.