From d2e22167da6a0067b890e7e9430c18a652597ab6 Mon Sep 17 00:00:00 2001 From: sigitas Date: Tue, 14 Apr 2015 10:21:52 +0300 Subject: [PATCH] invoice image added --- public/js/templates/clean.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/public/js/templates/clean.js b/public/js/templates/clean.js index 6e6d166399e5..21e7a6cae8a0 100644 --- a/public/js/templates/clean.js +++ b/public/js/templates/clean.js @@ -12,9 +12,13 @@ var dd = { content: [ { columns: [ - { - text: "" - }, + [ + invoice.image? + { + image: invoice.image, + fit: [150, 80] + }:"" + ], { text: [account.name, account.id_number, account.vat_number, account.work_email, account.work_phone].join('\n') },