mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Working on the invoice designs
This commit is contained in:
parent
76080fcc69
commit
6ed65f3572
@ -749,10 +749,6 @@ function GetReportTemplate1(doc, invoice, layout, checkMath)
|
|||||||
doc.setFontSize(9);
|
doc.setFontSize(9);
|
||||||
|
|
||||||
doc.setFontType("bold");
|
doc.setFontType("bold");
|
||||||
MsgRightAlign=400;
|
|
||||||
|
|
||||||
|
|
||||||
// GlobalY=x;
|
|
||||||
|
|
||||||
GlobalY=GlobalY+25;
|
GlobalY=GlobalY+25;
|
||||||
|
|
||||||
@ -777,12 +773,12 @@ function GetReportTemplate1(doc, invoice, layout, checkMath)
|
|||||||
|
|
||||||
doc.setFontSize(9);
|
doc.setFontSize(9);
|
||||||
displayNotesAndTerms(doc, layout, invoice, y);
|
displayNotesAndTerms(doc, layout, invoice, y);
|
||||||
y += displaySubtotals(doc, layout, invoice, y, MsgRightAlign);
|
y += displaySubtotals(doc, layout, invoice, y, layout.unitCostRight);
|
||||||
|
|
||||||
|
|
||||||
doc.setFontSize(10);
|
doc.setFontSize(10);
|
||||||
Msg='Balance Due';
|
Msg='Balance Due';
|
||||||
var TmpMsgX = MsgRightAlign-(doc.getStringUnitWidth(Msg) * doc.internal.getFontSize());
|
var TmpMsgX = layout.unitCostRight-(doc.getStringUnitWidth(Msg) * doc.internal.getFontSize());
|
||||||
|
|
||||||
doc.text(TmpMsgX, y, Msg);
|
doc.text(TmpMsgX, y, Msg);
|
||||||
|
|
||||||
@ -927,9 +923,8 @@ function GetReportTemplate2(doc, invoice, layout, checkMath)
|
|||||||
|
|
||||||
x = GlobalY + 100;
|
x = GlobalY + 100;
|
||||||
|
|
||||||
|
|
||||||
doc.setFontType("bold");
|
doc.setFontType("bold");
|
||||||
MsgRightAlign=400;
|
|
||||||
|
|
||||||
|
|
||||||
doc.setFontSize(12);
|
doc.setFontSize(12);
|
||||||
@ -953,14 +948,14 @@ function GetReportTemplate2(doc, invoice, layout, checkMath)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
displayNotesAndTerms(doc, layout, invoice, y);
|
displayNotesAndTerms(doc, layout, invoice, y);
|
||||||
y += displaySubtotals(doc, layout, invoice, y, MsgRightAlign);
|
y += displaySubtotals(doc, layout, invoice, y, layout.unitCostRight);
|
||||||
|
|
||||||
doc.setFontType("bold");
|
doc.setFontType("bold");
|
||||||
|
|
||||||
doc.setFontSize(12);
|
doc.setFontSize(12);
|
||||||
x += doc.internal.getFontSize()*4;
|
x += doc.internal.getFontSize()*4;
|
||||||
Msg='Balance Due';
|
Msg='Balance Due';
|
||||||
var TmpMsgX = MsgRightAlign-(doc.getStringUnitWidth(Msg) * doc.internal.getFontSize());
|
var TmpMsgX = layout.unitCostRight-(doc.getStringUnitWidth(Msg) * doc.internal.getFontSize());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user