change invoice.id to invoice.id.value