
SELECT CONCAT_WS('/', c.pdfs_dir, invoiceGetPath(#invoice))
	FROM config c
	JOIN invoice_view i
		WHERE i.invoice_id = #invoice
