Repaired some old code in the invoiceService.