{{define "invoice_search_results"}} {{if .Error}}
Search term: "{{.SearchTerm}}"
Search term: "{{.SearchTerm}}"
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}}Unexpected response. Please try again.
{{end}} {{end}}