Browse Source

updated a line that was producing a warning message

cli-archive
nic 1 year ago
parent
commit
d6733135ab
  1. 8
      internal/handlers/web/invoices.go

8
internal/handlers/web/invoices.go

@ -106,12 +106,8 @@ func handleInvoiceSearch(w http.ResponseWriter, r *http.Request, session *api.Se
invoice["id"] = fmt.Sprintf("%.0f", id)
}
// log.Printf("Invoice found: %+v", invoice)
if invoice != nil {
// Add the buttons to display
invoice["buttons"] = getInvoiceStatusButtons(invoice["id"].(string), invoice["status"].(string))
}
// Add the buttons to display
invoice["buttons"] = getInvoiceStatusButtons(invoice["id"].(string), invoice["status"].(string))
err = tmpl.ExecuteTemplate(w, "invoice_search_results", invoice)
if err != nil {

Loading…
Cancel
Save