mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
report 3-3
This commit is contained in:
parent
f13e42f34f
commit
28a2eece85
@ -2214,7 +2214,7 @@ function GetReportTemplate3 (invoice,checkMath)
|
|||||||
SetPdfColor('Black',doc); //set black color
|
SetPdfColor('Black',doc); //set black color
|
||||||
doc.setFontType("normal");
|
doc.setFontType("normal");
|
||||||
|
|
||||||
GlobalY=190;
|
GlobalY=170;
|
||||||
|
|
||||||
var z=GlobalY;
|
var z=GlobalY;
|
||||||
|
|
||||||
@ -2359,16 +2359,56 @@ function GetReportTemplate3 (invoice,checkMath)
|
|||||||
qtyRight -= 40;
|
qtyRight -= 40;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var costX = unitCostRight - (doc.getStringUnitWidth('Unit Cost') * doc.internal.getFontSize());
|
var costX = unitCostRight - (doc.getStringUnitWidth('Unit Cost') * doc.internal.getFontSize());
|
||||||
var qtyX = qtyRight - (doc.getStringUnitWidth('Quantity') * doc.internal.getFontSize());
|
var qtyX = qtyRight - (doc.getStringUnitWidth('Quantity') * doc.internal.getFontSize());
|
||||||
var taxX = taxRight - (doc.getStringUnitWidth('Tax') * doc.internal.getFontSize());
|
var taxX = taxRight - (doc.getStringUnitWidth('Tax') * doc.internal.getFontSize());
|
||||||
var totalX = lineTotalRight - (doc.getStringUnitWidth('Line Total') * doc.internal.getFontSize());
|
var totalX = lineTotalRight - (doc.getStringUnitWidth('Line Total') * doc.internal.getFontSize()) -15;
|
||||||
|
|
||||||
tableTop=GlobalY;//redefine this to dynamic value
|
tableTop=GlobalY;//redefine this to dynamic value
|
||||||
|
|
||||||
|
|
||||||
doc.setFontSize(12);
|
doc.setFontSize(12);
|
||||||
doc.setFontType("bold");
|
doc.setFontType("bold");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
doc.setLineWidth(0.3);
|
||||||
|
|
||||||
|
doc.setDrawColor(63,60,60);
|
||||||
|
doc.setFillColor(63,60,60);
|
||||||
|
var x1 = tableLeft-tablePadding*2+5 ;
|
||||||
|
var y1 = GlobalY-doc.internal.getFontSize()-15;
|
||||||
|
var w2 = 515+tablePadding*2-3;//lineTotalRight-tablePadding*5;
|
||||||
|
var h2 = doc.internal.getFontSize()+15*2;
|
||||||
|
doc.rect(x1, y1, w2, h2, 'FD');
|
||||||
|
|
||||||
|
|
||||||
|
SetPdfColor('White',doc);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
doc.text(tableLeft, tableTop, 'Item');
|
doc.text(tableLeft, tableTop, 'Item');
|
||||||
doc.text(descriptionLeft, tableTop, 'Description');
|
doc.text(descriptionLeft, tableTop, 'Description');
|
||||||
doc.text(costX, tableTop, 'Unit Cost');
|
doc.text(costX, tableTop, 'Unit Cost');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user