commit | c2d322c50449e40d63e32e6d29a0d27111812b93 | [log] [tgz] |
---|---|---|
author | Sergiusz Bazanski <q3k@q3k.org> | Wed May 01 13:14:32 2019 +0200 |
committer | Sergiusz Bazanski <q3k@q3k.org> | Wed May 01 13:14:32 2019 +0200 |
tree | b8136550eb91960c7c066b3e5da6815fe2ed8eb7 | |
parent | fb18c99df31a15424baa50fe512d7d8e4c715106 [diff] [blame] |
go/svc/invoice: polishify
diff --git a/go/svc/invoice/render.go b/go/svc/invoice/render.go index 47c6c6d..a433fa8 100644 --- a/go/svc/invoice/render.go +++ b/go/svc/invoice/render.go
@@ -72,7 +72,10 @@ InvoiceeBilling: make([]string, len(i.CustomerBilling)), } - unit := "€" + unit := i.Unit + if unit == "" { + unit = "€" + } for d, s := range i.InvoicerBilling { data.InvoicerBilling[d] = s