Function added to update invoiced lead