Solution for incorrect content on installment/closing invoices in invoice list

If normal invoices and term/closing invoices were invoiced at the same time, and in the process were re-collected in the invoice list, the term/closing invoices could contain incorrect content. This has been fixed.