diff --git a/main.go b/main.go index 3898920285666bd6b8f24ca06e5a09a1ec450004..d11030d1c0f50ea9cd7ace94e15fa3f3c5c44938 100644 --- a/main.go +++ b/main.go @@ -110,7 +110,9 @@ var generateCmd = &cobra.Command{ writeRow(&pdf, items[i], q, r) subtotal += float64(q) * r } - writeNotes(&pdf, note) + if note != "" { + writeNotes(&pdf, note) + } writeTotals(&pdf, subtotal, subtotal*tax, subtotal*discount) writeFooter(&pdf, id) output = strings.TrimSuffix(output, ".pdf") + ".pdf"