{{define "invoice_search_results"}} {{if .Error}}
Error: {{.Error}}
{{else if .invoiceNumber}}Invoice Number: {{.invoiceNumber}}
Total Price: ${{.totalPrice}}
Status: {{.status}}
{{with .customer}}Customer: {{.name}}
{{end}} {{with .job}}Job: {{.name}}
{{end}} {{with .location}}Location: {{.name}}
{{end}} {{if .items}}No invoice found with the given identifier.
{{end}} {{end}}