diff --git a/pkg/invoices.go b/pkg/invoices.go index 2944f8c..c892503 100644 --- a/pkg/invoices.go +++ b/pkg/invoices.go @@ -413,6 +413,9 @@ func newNewInvoicePage(form *invoiceForm, r *http.Request) *newInvoicePage { if err != nil { panic(err) } + if len(form.Products) == 0 { + form.Products = append(form.Products, newInvoiceProductForm(0, company, getLocale(r), mustGetTaxOptions(r.Context(), conn, company))) + } return page }