From b6c3f562f12303301ea24d6958450e8c97b6f784 Mon Sep 17 00:00:00 2001 From: alltheworld Date: Fri, 21 Feb 2014 08:02:06 +0200 Subject: [PATCH] Report 1 update --- public/js/script.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/public/js/script.js b/public/js/script.js index 89cc8cdee7..aa71a93f5a 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -1063,7 +1063,7 @@ GlobalY=GlobalY+14; //padding from top // var dueDateX = headerRight - (doc.getStringUnitWidth(dueDate) * doc.internal.getFontSize()); x += 16+50; - + doc.setFontType("bold"); MsgRightAlign=400; Msg='Total'; @@ -1071,6 +1071,8 @@ GlobalY=GlobalY+14; //padding from top doc.text(TmpMsgX, x, Msg); + + doc.setFontType("normal"); AmountText = formatMoney(total , currencyId); headerLeft=headerRight+400; var AmountX = headerLeft - (doc.getStringUnitWidth(AmountText) * doc.internal.getFontSize()); @@ -1098,15 +1100,18 @@ GlobalY=GlobalY+14; //padding from top - + doc.setFontSize(10); x += doc.internal.getFontSize()*4; //doc.text(footerLeft, x, ''); Msg='Amount Due'; var TmpMsgX = MsgRightAlign-(doc.getStringUnitWidth(Msg) * doc.internal.getFontSize()); + + + doc.text(TmpMsgX, x, Msg); - + SetPdfColor('LightBlue',doc); AmountText = formatMoney(balance , currencyId); headerLeft=headerRight+400; var AmountX = headerLeft - (doc.getStringUnitWidth(AmountText) * doc.internal.getFontSize());