1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-18 09:04:35 +01:00

report 3-3

This commit is contained in:
alltheworld 2014-03-02 04:04:42 +02:00
parent 1fbb6afaf7
commit 83e842d215

View File

@ -2214,30 +2214,10 @@ function GetReportTemplate3 (invoice,checkMath)
SetPdfColor('Black',doc); //set black color SetPdfColor('Black',doc); //set black color
doc.setFontType("normal"); doc.setFontType("normal");
//publish filled box
// doc.setDrawColor(200,200,200);
// doc.setFillColor(54,164,152);
GlobalY=190; GlobalY=190;
//doc.setLineWidth(0.5);
// var BlockLenght=220;
// var x1 =595-BlockLenght;
// var y1 = GlobalY-12;
// var w2 = BlockLenght;
// var h2 = 90;
// // doc.rect(x1, y1, w2, h2, 'FD');
// SetPdfColor('SomeGreen',doc);
// doc.setFontSize('14');
// doc.setFontType("bold");
// doc.text(50, GlobalY, 'YOUR INVOICE');
//
//
var z=GlobalY; var z=GlobalY;
// z=z+30;
SetPdfColor('Black',doc); SetPdfColor('Black',doc);
@ -2290,10 +2270,6 @@ function GetReportTemplate3 (invoice,checkMath)
marginLeft2=395; marginLeft2=395;
//publish left side information //publish left side information
@ -2509,7 +2485,7 @@ function GetReportTemplate3 (invoice,checkMath)
GlobalY=GlobalY+h+tablePadding*2; GlobalY=GlobalY+h+tablePadding*2;
SetPdfColor('SomeGreen',doc); // SetPdfColor('SomeGreen',doc);
doc.text(tableLeft, x, productKey); doc.text(tableLeft, x, productKey);
SetPdfColor('Black',doc); SetPdfColor('Black',doc);
@ -2590,7 +2566,7 @@ function GetReportTemplate3 (invoice,checkMath)
doc.text(TmpMsgX, x, Msg); doc.text(TmpMsgX, x, Msg);
// SetPdfColor('LightBlue',doc);
AmountText = formatMoney(balance , currencyId); AmountText = formatMoney(balance , currencyId);
headerLeft=headerRight+400; headerLeft=headerRight+400;
var AmountX = headerLeft - (doc.getStringUnitWidth(AmountText) * doc.internal.getFontSize()); var AmountX = headerLeft - (doc.getStringUnitWidth(AmountText) * doc.internal.getFontSize());