diff --git a/internal/handlers/web/invoices.go b/internal/handlers/web/invoices.go index 980970c..e63ac46 100644 --- a/internal/handlers/web/invoices.go +++ b/internal/handlers/web/invoices.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" "html/template" - "io/ioutil" + "io" "log" "marmic/servicetrade-toolbox/internal/api" "net/http" @@ -137,7 +137,7 @@ func VoidInvoiceHandler(w http.ResponseWriter, r *http.Request) { defer resp.Body.Close() if resp.StatusCode != http.StatusOK { - body, _ := ioutil.ReadAll(resp.Body) + body, _ := io.ReadAll(resp.Body) log.Printf("Failed to void invoice: %s", body) http.Error(w, fmt.Sprintf("Failed to void invoice: %s", body), resp.StatusCode) return diff --git a/templates/partials/invoice_search_results.html b/templates/partials/invoice_search_results.html index bade5bc..4683b78 100644 --- a/templates/partials/invoice_search_results.html +++ b/templates/partials/invoice_search_results.html @@ -10,6 +10,7 @@ {{else if .invoiceNumber}}
Invoice Number: {{.invoiceNumber}}
Total Price: ${{.totalPrice}}
Status: {{.status}}