diff --git a/pkg/invoices.go b/pkg/invoices.go index 61668a9..f7c5672 100644 --- a/pkg/invoices.go +++ b/pkg/invoices.go @@ -26,7 +26,6 @@ type InvoiceEntry struct { Number string Total string CustomerName string - CustomerSlug string Tags []string Status string StatusLabel string @@ -54,7 +53,6 @@ func mustCollectInvoiceEntries(ctx context.Context, conn *Conn, company *Company , invoice_date , invoice_number , contact.business_name - , contact.slug , array_agg(coalesce(tag.name::text, '')) , invoice.invoice_status , isi18n.name @@ -71,7 +69,6 @@ func mustCollectInvoiceEntries(ctx context.Context, conn *Conn, company *Company , invoice_date , invoice_number , contact.business_name - , contact.slug , invoice.invoice_status , isi18n.name , total @@ -84,7 +81,7 @@ func mustCollectInvoiceEntries(ctx context.Context, conn *Conn, company *Company var entries []*InvoiceEntry for rows.Next() { entry := &InvoiceEntry{} - if err := rows.Scan(&entry.Slug, &entry.Date, &entry.Number, &entry.CustomerName, &entry.CustomerSlug, &entry.Tags, &entry.Status, &entry.StatusLabel, &entry.Total); err != nil { + if err := rows.Scan(&entry.Slug, &entry.Date, &entry.Number, &entry.CustomerName, &entry.Tags, &entry.Status, &entry.StatusLabel, &entry.Total); err != nil { panic(err) } entries = append(entries, entry) diff --git a/web/template/invoices/index.gohtml b/web/template/invoices/index.gohtml index 4f8c435..283d5e8 100644 --- a/web/template/invoices/index.gohtml +++ b/web/template/invoices/index.gohtml @@ -50,7 +50,7 @@ title="{{ $title }}"/> {{ .Date|formatDate }} {{ .Number }} - {{ .CustomerName }} + {{ .CustomerName }}