From 50e8f45dffb2bd6c1b2ed8b013986c5345b73466 Mon Sep 17 00:00:00 2001 From: alltheworld Date: Wed, 5 Mar 2014 16:43:41 +0200 Subject: [PATCH] report fixes lines --- public/js/script.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/public/js/script.js b/public/js/script.js index aefb51871bc1..e8058f9ebd2d 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -1061,6 +1061,15 @@ y2=GlobalY; doc.rect(x1, y1, w2, h2, 'FD'); + + doc.setDrawColor(220,220,220); + doc.line(x1, y1, x1+w2, y1); // horizontal line + + doc.line(x1, y1+h2, x1+w2, y1+h2); // horizontal line + + + + } x=GlobalY; @@ -1160,7 +1169,6 @@ y2=GlobalY; x += doc.internal.getFontSize()*2; -//alert(invoice.discount!=''); if (invoice.discount>0 ) { @@ -1170,7 +1178,7 @@ y2=GlobalY; discount=invoice.discount/100; - //alert (discount); + d=total*discount;