diff options
author | Sebastian Reichel <sre@ring0.de> | 2013-05-11 23:30:52 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2013-05-11 23:30:52 +0200 |
commit | dddcc2b56200c651ff23ed65363a259355bd1677 (patch) | |
tree | 07fe0ce8ac43fcd1bc4e732610c368bac192d28a /src/pdf-invoice | |
parent | 376dbee42454a58145544b621e7eeb731d92a880 (diff) | |
download | serial-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.vala | 2 |
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 */ |