mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-09 10:04:36 -04:00
Merge template formatting
This commit is contained in:
parent
e11fcd30ae
commit
51a16de01b
@ -5,10 +5,18 @@
|
|||||||
{
|
{
|
||||||
"width":380,
|
"width":380,
|
||||||
"stack":[
|
"stack":[
|
||||||
{"text":"$yourInvoiceLabelUC", "style": "yourInvoice"},
|
{
|
||||||
|
"text":"$yourInvoiceLabelUC",
|
||||||
|
"style":"yourInvoice"
|
||||||
|
},
|
||||||
"$clientDetails"
|
"$clientDetails"
|
||||||
],
|
],
|
||||||
"margin": [60, 100, 0, 10]
|
"margin":[
|
||||||
|
60,
|
||||||
|
100,
|
||||||
|
0,
|
||||||
|
10
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"canvas":[
|
"canvas":[
|
||||||
@ -24,14 +32,24 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"width":10,
|
"width":10,
|
||||||
"margin":[-10,100,0,10]
|
"margin":[
|
||||||
|
-10,
|
||||||
|
100,
|
||||||
|
0,
|
||||||
|
10
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"table":{
|
"table":{
|
||||||
"body":"$invoiceDetails"
|
"body":"$invoiceDetails"
|
||||||
},
|
},
|
||||||
"layout":"noBorders",
|
"layout":"noBorders",
|
||||||
"margin": [0, 110, 0, 0]
|
"margin":[
|
||||||
|
0,
|
||||||
|
110,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -60,7 +78,10 @@
|
|||||||
"$notesAndTerms",
|
"$notesAndTerms",
|
||||||
{
|
{
|
||||||
"table":{
|
"table":{
|
||||||
"widths": ["*", "40%"],
|
"widths":[
|
||||||
|
"*",
|
||||||
|
"40%"
|
||||||
|
],
|
||||||
"body":"$subtotals"
|
"body":"$subtotals"
|
||||||
},
|
},
|
||||||
"layout":{
|
"layout":{
|
||||||
@ -71,7 +92,8 @@
|
|||||||
"paddingTop":"$amount:4",
|
"paddingTop":"$amount:4",
|
||||||
"paddingBottom":"$amount:4"
|
"paddingBottom":"$amount:4"
|
||||||
}
|
}
|
||||||
}]
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"stack":[
|
"stack":[
|
||||||
@ -80,15 +102,30 @@
|
|||||||
"style":"invoiceDocuments"
|
"style":"invoiceDocuments"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"footer":
|
"footer":[
|
||||||
[
|
|
||||||
{"canvas": [{ "type": "line", "x1": 0, "y1": 0, "x2": 600, "y2": 0,"lineWidth": 100,"lineColor":"$secondaryColor:#292526"}]},
|
|
||||||
{
|
{
|
||||||
"columns":
|
"canvas":[
|
||||||
[
|
{
|
||||||
|
"type":"line",
|
||||||
|
"x1":0,
|
||||||
|
"y1":0,
|
||||||
|
"x2":600,
|
||||||
|
"y2":0,
|
||||||
|
"lineWidth":100,
|
||||||
|
"lineColor":"$secondaryColor:#292526"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"columns":[
|
||||||
{
|
{
|
||||||
"text":"$invoiceFooter",
|
"text":"$invoiceFooter",
|
||||||
"margin": [40, -40, 40, 0],
|
"margin":[
|
||||||
|
40,
|
||||||
|
-40,
|
||||||
|
40,
|
||||||
|
0
|
||||||
|
],
|
||||||
"alignment":"left",
|
"alignment":"left",
|
||||||
"color":"#FFFFFF"
|
"color":"#FFFFFF"
|
||||||
}
|
}
|
||||||
@ -114,8 +151,16 @@
|
|||||||
"columns":[
|
"columns":[
|
||||||
{
|
{
|
||||||
"image":"$accountLogo",
|
"image":"$accountLogo",
|
||||||
"fit": [120, 60],
|
"fit":[
|
||||||
"margin": [30, 16, 0, 0]
|
120,
|
||||||
|
60
|
||||||
|
],
|
||||||
|
"margin":[
|
||||||
|
30,
|
||||||
|
16,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"stack":"$accountDetails",
|
"stack":"$accountDetails",
|
||||||
@ -142,7 +187,12 @@
|
|||||||
"defaultStyle":{
|
"defaultStyle":{
|
||||||
"font":"$bodyFont",
|
"font":"$bodyFont",
|
||||||
"fontSize":"$fontSize",
|
"fontSize":"$fontSize",
|
||||||
"margin": [8, 4, 8, 4]
|
"margin":[
|
||||||
|
8,
|
||||||
|
4,
|
||||||
|
8,
|
||||||
|
4
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"styles":{
|
"styles":{
|
||||||
"primaryColor":{
|
"primaryColor":{
|
||||||
@ -150,19 +200,39 @@
|
|||||||
},
|
},
|
||||||
"accountName":{
|
"accountName":{
|
||||||
"bold":true,
|
"bold":true,
|
||||||
"margin": [4, 2, 4, 1],
|
"margin":[
|
||||||
|
4,
|
||||||
|
2,
|
||||||
|
4,
|
||||||
|
1
|
||||||
|
],
|
||||||
"color":"$primaryColor:#36a498"
|
"color":"$primaryColor:#36a498"
|
||||||
},
|
},
|
||||||
"accountDetails":{
|
"accountDetails":{
|
||||||
"margin": [4, 2, 4, 1],
|
"margin":[
|
||||||
|
4,
|
||||||
|
2,
|
||||||
|
4,
|
||||||
|
1
|
||||||
|
],
|
||||||
"color":"#FFFFFF"
|
"color":"#FFFFFF"
|
||||||
},
|
},
|
||||||
"accountAddress":{
|
"accountAddress":{
|
||||||
"margin": [4, 2, 4, 1],
|
"margin":[
|
||||||
|
4,
|
||||||
|
2,
|
||||||
|
4,
|
||||||
|
1
|
||||||
|
],
|
||||||
"color":"#FFFFFF"
|
"color":"#FFFFFF"
|
||||||
},
|
},
|
||||||
"clientDetails":{
|
"clientDetails":{
|
||||||
"margin": [0, 2, 0, 1]
|
"margin":[
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
0,
|
||||||
|
1
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"odd":{
|
"odd":{
|
||||||
"fillColor":"#ebebeb"
|
"fillColor":"#ebebeb"
|
||||||
@ -197,13 +267,28 @@
|
|||||||
},
|
},
|
||||||
"lineTotalTableHeader":{
|
"lineTotalTableHeader":{
|
||||||
"alignment":"right",
|
"alignment":"right",
|
||||||
"margin": [0, 0, 40, 0]
|
"margin":[
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
40,
|
||||||
|
0
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"firstColumn":{
|
"firstColumn":{
|
||||||
"margin": [40, 0, 0, 0]
|
"margin":[
|
||||||
|
40,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"lastColumn":{
|
"lastColumn":{
|
||||||
"margin": [0, 0, 40, 0]
|
"margin":[
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
40,
|
||||||
|
0
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"productKey":{
|
"productKey":{
|
||||||
"color":"$primaryColor:#36a498",
|
"color":"$primaryColor:#36a498",
|
||||||
@ -214,10 +299,20 @@
|
|||||||
"bold":true,
|
"bold":true,
|
||||||
"fontSize":14,
|
"fontSize":14,
|
||||||
"color":"$primaryColor:#36a498",
|
"color":"$primaryColor:#36a498",
|
||||||
"margin": [0,0,0,8]
|
"margin":[
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
8
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"invoiceLineItemsTable":{
|
"invoiceLineItemsTable":{
|
||||||
"margin": [0, 26, 0, 16]
|
"margin":[
|
||||||
|
0,
|
||||||
|
26,
|
||||||
|
0,
|
||||||
|
16
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"clientName":{
|
"clientName":{
|
||||||
"bold":true
|
"bold":true
|
||||||
@ -236,11 +331,21 @@
|
|||||||
},
|
},
|
||||||
"subtotals":{
|
"subtotals":{
|
||||||
"alignment":"right",
|
"alignment":"right",
|
||||||
"margin": [0,0,40,0]
|
"margin":[
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
40,
|
||||||
|
0
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"termsLabel":{
|
"termsLabel":{
|
||||||
"bold":true,
|
"bold":true,
|
||||||
"margin": [0, 0, 0, 4]
|
"margin":[
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
4
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"fullheader":{
|
"fullheader":{
|
||||||
"font":"$headerFont",
|
"font":"$headerFont",
|
||||||
@ -256,11 +361,26 @@
|
|||||||
"color":"#737373"
|
"color":"#737373"
|
||||||
},
|
},
|
||||||
"invoiceDocuments":{
|
"invoiceDocuments":{
|
||||||
"margin": [47, 0, 47, 0]
|
"margin":[
|
||||||
|
47,
|
||||||
|
0,
|
||||||
|
47,
|
||||||
|
0
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"invoiceDocument":{
|
"invoiceDocument":{
|
||||||
"margin": [0, 10, 0, 10]
|
"margin":[
|
||||||
|
0,
|
||||||
|
10,
|
||||||
|
0,
|
||||||
|
10
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pageMargins": [0, 80, 0, 40]
|
"pageMargins":[
|
||||||
|
0,
|
||||||
|
80,
|
||||||
|
0,
|
||||||
|
40
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,22 @@
|
|||||||
{
|
{
|
||||||
"content": [{
|
"content":[
|
||||||
|
{
|
||||||
"columns":[
|
"columns":[
|
||||||
{
|
{
|
||||||
"image":"$accountLogo",
|
"image":"$accountLogo",
|
||||||
"fit": [120, 80]
|
"fit":[
|
||||||
|
120,
|
||||||
|
80
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"stack":"$accountDetails",
|
"stack":"$accountDetails",
|
||||||
"margin": [7, 0, 0, 0]
|
"margin":[
|
||||||
|
7,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"stack":"$accountAddress"
|
"stack":"$accountAddress"
|
||||||
@ -16,21 +25,34 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"text":"$entityTypeUC",
|
"text":"$entityTypeUC",
|
||||||
"margin": [8, 30, 8, 5],
|
"margin":[
|
||||||
|
8,
|
||||||
|
30,
|
||||||
|
8,
|
||||||
|
5
|
||||||
|
],
|
||||||
"style":"entityTypeLabel"
|
"style":"entityTypeLabel"
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"table":{
|
"table":{
|
||||||
"headerRows":1,
|
"headerRows":1,
|
||||||
"widths": ["auto", "auto", "*"],
|
"widths":[
|
||||||
|
"auto",
|
||||||
|
"auto",
|
||||||
|
"*"
|
||||||
|
],
|
||||||
"body":[
|
"body":[
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"table":{
|
"table":{
|
||||||
"body":"$invoiceDetails"
|
"body":"$invoiceDetails"
|
||||||
},
|
},
|
||||||
"margin": [0, 0, 12, 0],
|
"margin":[
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
12,
|
||||||
|
0
|
||||||
|
],
|
||||||
"layout":"noBorders"
|
"layout":"noBorders"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -74,7 +96,10 @@
|
|||||||
"$notesAndTerms",
|
"$notesAndTerms",
|
||||||
{
|
{
|
||||||
"table":{
|
"table":{
|
||||||
"widths": ["*", "40%"],
|
"widths":[
|
||||||
|
"*",
|
||||||
|
"40%"
|
||||||
|
],
|
||||||
"body":"$subtotals"
|
"body":"$subtotals"
|
||||||
},
|
},
|
||||||
"layout":{
|
"layout":{
|
||||||
@ -98,7 +123,12 @@
|
|||||||
"defaultStyle":{
|
"defaultStyle":{
|
||||||
"font":"$bodyFont",
|
"font":"$bodyFont",
|
||||||
"fontSize":"$fontSize",
|
"fontSize":"$fontSize",
|
||||||
"margin": [8, 4, 8, 4]
|
"margin":[
|
||||||
|
8,
|
||||||
|
4,
|
||||||
|
8,
|
||||||
|
4
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"footer":{
|
"footer":{
|
||||||
"columns":[
|
"columns":[
|
||||||
@ -107,7 +137,12 @@
|
|||||||
"alignment":"left"
|
"alignment":"left"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"margin": [40, -20, 40, 0]
|
"margin":[
|
||||||
|
40,
|
||||||
|
-20,
|
||||||
|
40,
|
||||||
|
0
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"styles":{
|
"styles":{
|
||||||
"entityTypeLabel":{
|
"entityTypeLabel":{
|
||||||
@ -123,19 +158,44 @@
|
|||||||
"bold":true
|
"bold":true
|
||||||
},
|
},
|
||||||
"invoiceDetails":{
|
"invoiceDetails":{
|
||||||
"margin": [0, 0, 8, 0]
|
"margin":[
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
8,
|
||||||
|
0
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"accountDetails":{
|
"accountDetails":{
|
||||||
"margin": [0, 2, 0, 2]
|
"margin":[
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
0,
|
||||||
|
2
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"clientDetails":{
|
"clientDetails":{
|
||||||
"margin": [0, 2, 0, 2]
|
"margin":[
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
0,
|
||||||
|
2
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"notesAndTerms":{
|
"notesAndTerms":{
|
||||||
"margin": [0, 2, 0, 2]
|
"margin":[
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
0,
|
||||||
|
2
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"accountAddress":{
|
"accountAddress":{
|
||||||
"margin": [0, 2, 0, 2]
|
"margin":[
|
||||||
|
0,
|
||||||
|
2,
|
||||||
|
0,
|
||||||
|
2
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"odd":{
|
"odd":{
|
||||||
"fillColor":"#fbfbfb"
|
"fillColor":"#fbfbfb"
|
||||||
@ -171,7 +231,12 @@
|
|||||||
"alignment":"right"
|
"alignment":"right"
|
||||||
},
|
},
|
||||||
"invoiceLineItemsTable":{
|
"invoiceLineItemsTable":{
|
||||||
"margin": [0, 16, 0, 16]
|
"margin":[
|
||||||
|
0,
|
||||||
|
16,
|
||||||
|
0,
|
||||||
|
16
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"clientName":{
|
"clientName":{
|
||||||
"bold":true
|
"bold":true
|
||||||
@ -208,11 +273,26 @@
|
|||||||
"color":"#737373"
|
"color":"#737373"
|
||||||
},
|
},
|
||||||
"invoiceDocuments":{
|
"invoiceDocuments":{
|
||||||
"margin": [7, 0, 7, 0]
|
"margin":[
|
||||||
|
7,
|
||||||
|
0,
|
||||||
|
7,
|
||||||
|
0
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"invoiceDocument":{
|
"invoiceDocument":{
|
||||||
"margin": [0, 10, 0, 10]
|
"margin":[
|
||||||
|
0,
|
||||||
|
10,
|
||||||
|
0,
|
||||||
|
10
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pageMargins": [40, 40, 40, 60]
|
"pageMargins":[
|
||||||
|
40,
|
||||||
|
40,
|
||||||
|
40,
|
||||||
|
60
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user