summaryrefslogtreecommitdiffstats
path: root/src/pdf-invoice
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2013-05-11 23:30:52 +0200
committerSebastian Reichel <sre@ring0.de>2013-05-11 23:30:52 +0200
commitdddcc2b56200c651ff23ed65363a259355bd1677 (patch)
tree07fe0ce8ac43fcd1bc4e732610c368bac192d28a /src/pdf-invoice
parent376dbee42454a58145544b621e7eeb731d92a880 (diff)
downloadserial-barcode-scanner-dddcc2b56200c651ff23ed65363a259355bd1677.tar.bz2
pdf-invoice: special users have no firstname
Diffstat (limited to 'src/pdf-invoice')
-rw-r--r--src/pdf-invoice/pdf-invoice.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pdf-invoice/pdf-invoice.vala b/src/pdf-invoice/pdf-invoice.vala
index 5182425..9c290ac 100644
--- a/src/pdf-invoice/pdf-invoice.vala
+++ b/src/pdf-invoice/pdf-invoice.vala
@@ -608,7 +608,7 @@ public class InvoicePDF {
if(invoice_date == 0)
throw new InvoicePDFError.NO_INVOICE_DATE("No invoice date given!");
- if(invoice_recipient.firstname == "" || invoice_recipient.lastname == "")
+ if(invoice_recipient.firstname == "" && invoice_recipient.lastname == "")
throw new InvoicePDFError.NO_INVOICE_RECIPIENT("No invoice recipient given!");
/* first page */