2015-07-21 20:51:56 +02:00
|
|
|
{
|
|
|
|
"content": [
|
|
|
|
{
|
|
|
|
"columns": [
|
|
|
|
{
|
|
|
|
"image": "$accountLogo",
|
|
|
|
"width": 80,
|
|
|
|
"margin": [60, -40, 0, 0]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"width": 300,
|
|
|
|
"stack": [
|
2015-07-26 22:05:38 +02:00
|
|
|
{"text":"$yourInvoiceLabelUC", "style": "yourInvoice"},
|
2015-07-21 20:51:56 +02:00
|
|
|
"$clientDetails"
|
|
|
|
],
|
2015-07-24 16:13:17 +02:00
|
|
|
"margin": [-32, 120, 0, 0]
|
2015-07-21 20:51:56 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"canvas": [
|
|
|
|
{
|
|
|
|
"type": "rect",
|
|
|
|
"x": 0,
|
|
|
|
"y": 0,
|
|
|
|
"w": 225,
|
2015-07-24 16:13:17 +02:00
|
|
|
"h": "$invoiceDetailsHeight",
|
2015-07-21 20:51:56 +02:00
|
|
|
"r":0,
|
|
|
|
"lineWidth": 1,
|
2015-07-24 16:13:17 +02:00
|
|
|
"color": "$primaryColor:#36a498"
|
2015-07-21 20:51:56 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"width":10,
|
2015-07-24 16:13:17 +02:00
|
|
|
"margin":[-10,120,0,0]
|
2015-07-21 20:51:56 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"table": {
|
|
|
|
"body": "$invoiceDetails"
|
|
|
|
},
|
|
|
|
"layout": "noBorders",
|
2015-07-24 16:13:17 +02:00
|
|
|
"margin": [0, 130, 0, 0]
|
2015-07-21 20:51:56 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"style": "invoiceLineItemsTable",
|
|
|
|
"table": {
|
|
|
|
"headerRows": 1,
|
|
|
|
"widths": ["15%", "*", "auto", "auto", "auto"],
|
|
|
|
"body": "$invoiceLineItems"
|
|
|
|
},
|
|
|
|
"layout": {
|
2015-07-26 22:05:38 +02:00
|
|
|
"hLineWidth": "$none",
|
|
|
|
"vLineWidth": "$none",
|
|
|
|
"paddingLeft": "$amount:8",
|
|
|
|
"paddingRight": "$amount:8",
|
|
|
|
"paddingTop": "$amount:14",
|
|
|
|
"paddingBottom": "$amount:14"
|
2015-07-21 20:51:56 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"columns": [
|
|
|
|
{
|
|
|
|
"width": 46,
|
|
|
|
"text": " "
|
|
|
|
},
|
|
|
|
"$notesAndTerms",
|
|
|
|
{
|
|
|
|
"table": {
|
2015-07-29 21:55:12 +02:00
|
|
|
"widths": ["*", "auto"],
|
2015-07-21 20:51:56 +02:00
|
|
|
"body": "$subtotals"
|
|
|
|
},
|
|
|
|
"layout": {
|
2015-07-26 22:05:38 +02:00
|
|
|
"hLineWidth": "$none",
|
|
|
|
"vLineWidth": "$none",
|
2015-07-29 21:55:12 +02:00
|
|
|
"paddingLeft": "$amount:34",
|
2015-07-26 22:05:38 +02:00
|
|
|
"paddingRight": "$amount:8",
|
|
|
|
"paddingTop": "$amount:4",
|
|
|
|
"paddingBottom": "$amount:4"
|
2015-07-21 20:51:56 +02:00
|
|
|
}
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"footer": [
|
|
|
|
{"canvas": [{ "type": "line", "x1": 0, "y1": 0, "x2": 600, "y2": 0,"lineWidth": 100,"lineColor":"#2e2b2b"}]},
|
|
|
|
{
|
|
|
|
"text": "$invoiceFooter",
|
|
|
|
"margin": [40, -20, 40, 0],
|
|
|
|
"alignment": "left",
|
|
|
|
"color": "#FFFFFF"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"header": [
|
|
|
|
{"canvas": [{ "type": "line", "x1": 0, "y1": 0, "x2": 50, "y2":0,"lineWidth": 200,"lineColor":"#2e2b2b"}],"width":100,"margin":[0,0,0,0]},
|
|
|
|
{"canvas": [{ "type": "line", "x1": 0, "y1": 0, "x2": 150, "y2":0,"lineWidth": 60,"lineColor":"#2e2b2b"}],"width":100,"margin":[0,0,0,0]},
|
|
|
|
{"canvas": [{ "type": "line", "x1": 149, "y1": 0, "x2": 600, "y2":0,"lineWidth": 200,"lineColor":"#2e2b2b"}],"width":10,"margin":[0,0,0,0]},
|
|
|
|
{
|
2015-07-24 16:13:17 +02:00
|
|
|
"columns": [
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"width": 260
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"stack": "$accountDetails",
|
|
|
|
"margin": [0, 16, 0, 0],
|
|
|
|
"width": 140
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"stack": "$accountAddress",
|
|
|
|
"margin": [20, 16, 0, 0]
|
|
|
|
}
|
|
|
|
]
|
2015-07-21 20:51:56 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"defaultStyle": {
|
|
|
|
"fontSize": "$fontSize",
|
|
|
|
"margin": [8, 4, 8, 4]
|
|
|
|
},
|
|
|
|
"styles": {
|
|
|
|
"primaryColor":{
|
2015-07-24 16:13:17 +02:00
|
|
|
"color": "$primaryColor:#36a498"
|
2015-07-21 20:51:56 +02:00
|
|
|
},
|
|
|
|
"accountName": {
|
2015-07-24 16:13:17 +02:00
|
|
|
"bold": true,
|
2015-07-21 20:51:56 +02:00
|
|
|
"margin": [4, 2, 4, 2],
|
2015-07-24 16:13:17 +02:00
|
|
|
"color": "$primaryColor:#36a498"
|
2015-07-21 20:51:56 +02:00
|
|
|
},
|
|
|
|
"accountDetails": {
|
|
|
|
"margin": [4, 2, 4, 2],
|
|
|
|
"color": "#AAA9A9"
|
|
|
|
},
|
2015-07-24 16:13:17 +02:00
|
|
|
"accountAddress": {
|
|
|
|
"margin": [4, 2, 4, 2],
|
|
|
|
"color": "#AAA9A9"
|
|
|
|
},
|
2015-07-21 20:51:56 +02:00
|
|
|
"odd": {
|
|
|
|
"fillColor": "#ebebeb",
|
|
|
|
"margin": [0,0,0,0]
|
|
|
|
},
|
|
|
|
"productKey": {
|
2015-07-24 16:13:17 +02:00
|
|
|
"color": "$primaryColor:#36a498"
|
2015-07-21 20:51:56 +02:00
|
|
|
},
|
|
|
|
"balanceDueLabel": {
|
|
|
|
"fontSize": "$fontSizeLargest",
|
|
|
|
"bold": true
|
|
|
|
},
|
|
|
|
"balanceDue": {
|
|
|
|
"fontSize": "$fontSizeLargest",
|
2015-07-24 16:13:17 +02:00
|
|
|
"color": "$primaryColor:#36a498",
|
2015-07-21 20:51:56 +02:00
|
|
|
"bold": true
|
|
|
|
},
|
|
|
|
"invoiceDetails": {
|
|
|
|
"color": "#ffffff"
|
|
|
|
},
|
|
|
|
"invoiceNumber": {
|
|
|
|
"bold": true
|
|
|
|
},
|
|
|
|
"itemTableHeader": {
|
|
|
|
"margin": [40,0,0,0]
|
|
|
|
},
|
|
|
|
"totalTableHeader": {
|
|
|
|
"margin": [0,0,40,0]
|
|
|
|
},
|
|
|
|
"tableHeader": {
|
|
|
|
"fontSize": 12,
|
|
|
|
"bold": true
|
|
|
|
},
|
|
|
|
"productKey": {
|
2015-07-24 16:13:17 +02:00
|
|
|
"color": "$primaryColor:#36a498",
|
2015-07-21 20:51:56 +02:00
|
|
|
"margin": [40,0,0,0],
|
|
|
|
"bold": true
|
|
|
|
},
|
|
|
|
"yourInvoice": {
|
|
|
|
"bold": true,
|
|
|
|
"fontSize": 14,
|
2015-07-24 16:13:17 +02:00
|
|
|
"color": "$primaryColor:#36a498",
|
2015-07-21 20:51:56 +02:00
|
|
|
"margin": [0,0,0,8]
|
|
|
|
},
|
|
|
|
"invoiceLineItemsTable": {
|
2015-07-24 16:13:17 +02:00
|
|
|
"margin": [0, 26, 0, 16]
|
2015-07-21 20:51:56 +02:00
|
|
|
},
|
|
|
|
"clientName": {
|
|
|
|
"bold": true
|
|
|
|
},
|
|
|
|
"cost": {
|
|
|
|
"alignment": "right"
|
|
|
|
},
|
|
|
|
"quantity": {
|
|
|
|
"alignment": "right"
|
|
|
|
},
|
|
|
|
"tax": {
|
|
|
|
"alignment": "right"
|
|
|
|
},
|
|
|
|
"lineTotal": {
|
|
|
|
"alignment": "right",
|
|
|
|
"margin": [0,0,40,0]
|
|
|
|
},
|
|
|
|
"subtotals": {
|
|
|
|
"alignment": "right",
|
|
|
|
"margin": [0,0,40,0]
|
|
|
|
},
|
|
|
|
"termsLabel": {
|
|
|
|
"bold": true,
|
2015-07-24 16:13:17 +02:00
|
|
|
"margin": [0, 0, 0, 4]
|
2015-07-21 20:51:56 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"pageMargins": [0, 80, 0, 40]
|
|
|
|
}
|