2015-07-21 20:51:56 +02:00
|
|
|
{
|
|
|
|
"content": [
|
|
|
|
{
|
|
|
|
"columns": [
|
|
|
|
{
|
|
|
|
"image": "$accountLogo",
|
|
|
|
"width": 80,
|
|
|
|
"margin": [0, 60, 0, 30]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"stack": "$clientDetails",
|
|
|
|
"margin": [260, 80, 0, 0]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"canvas": [{ "type": "rect", "x": 0, "y": 0, "w": 515, "h": 26, "r":0, "lineWidth": 1, "color":"#403d3d"}],"width":10,"margin":[0,25,0,-30]},
|
|
|
|
{
|
|
|
|
"style": "invoiceLineItemsTable",
|
|
|
|
"table": {
|
|
|
|
"headerRows": 1,
|
|
|
|
"widths": ["15%", "*", "auto", "auto", "auto"],
|
|
|
|
"body": "$invoiceLineItems"
|
|
|
|
},
|
|
|
|
"layout": {
|
|
|
|
"hLineWidth": "$borderNotTop:.5",
|
|
|
|
"vLineWidth": "$borderNone",
|
|
|
|
"hLineColor": "#888888",
|
|
|
|
"paddingLeft": "$padding:8",
|
|
|
|
"paddingRight": "$padding:8",
|
|
|
|
"paddingTop": "$padding:8",
|
|
|
|
"paddingBottom": "$padding:8"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"columns": [
|
|
|
|
"$notesAndTerms",
|
|
|
|
{
|
|
|
|
"table": {
|
|
|
|
"widths": ["*", "*"],
|
|
|
|
"body": "$subtotalsWithoutBalance"
|
|
|
|
},
|
|
|
|
"layout": {
|
|
|
|
"hLineWidth": "$borderNone",
|
|
|
|
"vLineWidth": "$borderNone",
|
|
|
|
"paddingLeft": "$padding:8",
|
|
|
|
"paddingRight": "$padding:8",
|
|
|
|
"paddingTop": "$padding:4",
|
|
|
|
"paddingBottom": "$padding:4"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"columns": [
|
|
|
|
{
|
|
|
|
"canvas": [
|
|
|
|
{
|
|
|
|
"type": "rect",
|
|
|
|
"x": 0,
|
|
|
|
"y": 0,
|
|
|
|
"w": 515,
|
|
|
|
"h": 26,
|
|
|
|
"r": 0,
|
|
|
|
"lineWidth": 1,
|
|
|
|
"color": "#403d3d"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"width": 10,
|
|
|
|
"margin": [
|
|
|
|
0,
|
|
|
|
10,
|
|
|
|
0,
|
|
|
|
0
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "$balanceDueLabel",
|
|
|
|
"style": "balanceDueLabel",
|
|
|
|
"margin": [0, 16, 0, 0],
|
|
|
|
"width": 370
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "$balanceDue",
|
|
|
|
"style": "balanceDue",
|
|
|
|
"margin": [0, 16, 8, 0]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
} ],
|
|
|
|
"footer": [
|
|
|
|
{
|
|
|
|
"canvas": [
|
|
|
|
{
|
2015-07-24 16:13:17 +02:00
|
|
|
"type": "line", "x1": 0, "y1": 0, "x2": 600, "y2": 0,"lineWidth": 100,"lineColor":"$primaryColor:#f26621"
|
2015-07-21 20:51:56 +02:00
|
|
|
}]
|
|
|
|
,"width":10
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"columns": [
|
|
|
|
{
|
|
|
|
"text": "$invoiceFooter",
|
|
|
|
"margin": [40, -30, 40, 0],
|
|
|
|
"alignment": "left",
|
|
|
|
"color": "#FFFFFF",
|
|
|
|
"width": 350
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"stack": "$accountDetails",
|
|
|
|
"margin": [0, -40, 0, 0],
|
|
|
|
"width": "*"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"stack": "$accountAddress",
|
|
|
|
"margin": [0, -40, 0, 0],
|
|
|
|
"width": "*"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"header": [
|
|
|
|
{
|
2015-07-24 16:13:17 +02:00
|
|
|
"canvas": [{ "type": "line", "x1": 0, "y1": 0, "x2": 600, "y2": 0,"lineWidth": 200,"lineColor":"$primaryColor:#f26621"}],"width":10
|
2015-07-21 20:51:56 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"columns": [
|
|
|
|
{
|
|
|
|
"text": "$accountName", "bold": true,"fontSize":30,"color":"#ffffff","margin":[40,20,0,0],"width":350
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"width": 300,
|
|
|
|
"table": {
|
|
|
|
"body": "$invoiceDetails"
|
|
|
|
},
|
|
|
|
"layout": "noBorders",
|
|
|
|
"margin": [400, -40, 0, 0]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"defaultStyle": {
|
|
|
|
"fontSize": "$fontSize",
|
|
|
|
"margin": [8, 4, 8, 4]
|
|
|
|
},
|
|
|
|
"styles": {
|
|
|
|
"primaryColor":{
|
|
|
|
"color": "$primaryColor:#299CC2"
|
|
|
|
},
|
|
|
|
"accountName": {
|
|
|
|
"margin": [4, 2, 4, 2],
|
|
|
|
"color": "$primaryColor:#299CC2"
|
|
|
|
},
|
|
|
|
"accountDetails": {
|
|
|
|
"margin": [4, 2, 4, 2],
|
|
|
|
"color": "#FFFFFF"
|
|
|
|
},
|
|
|
|
"accountAddress": {
|
|
|
|
"margin": [4, 2, 4, 2],
|
|
|
|
"color": "#FFFFFF"
|
|
|
|
},
|
|
|
|
"clientDetails": {
|
|
|
|
"margin": [0, 2, 4, 2]
|
|
|
|
},
|
|
|
|
"invoiceDetails": {
|
|
|
|
"color": "#FFFFFF"
|
|
|
|
},
|
|
|
|
"invoiceLineItemsTable": {
|
|
|
|
"margin": [0, 0, 0, 16]
|
|
|
|
},
|
|
|
|
"productKey": {
|
|
|
|
"bold": true
|
|
|
|
},
|
|
|
|
"clientName": {
|
|
|
|
"bold": true
|
|
|
|
},
|
|
|
|
"tableHeader": {
|
|
|
|
"bold": true,
|
|
|
|
"color": "#FFFFFF",
|
|
|
|
"fontSize": "$fontSizeLargest"
|
|
|
|
},
|
|
|
|
"balanceDueLabel": {
|
|
|
|
"fontSize": "$fontSizeLargest",
|
|
|
|
"color":"#FFFFFF",
|
|
|
|
"alignment":"right",
|
|
|
|
"bold": true
|
|
|
|
},
|
|
|
|
"balanceDue": {
|
|
|
|
"fontSize": "$fontSizeLargest",
|
|
|
|
"color":"#FFFFFF",
|
|
|
|
"bold": true,
|
|
|
|
"alignment":"right"
|
|
|
|
},
|
|
|
|
"cost": {
|
|
|
|
"alignment": "right"
|
|
|
|
},
|
|
|
|
"quantity": {
|
|
|
|
"alignment": "right"
|
|
|
|
},
|
|
|
|
"tax": {
|
|
|
|
"alignment": "right"
|
|
|
|
},
|
|
|
|
"lineTotal": {
|
|
|
|
"alignment": "right"
|
|
|
|
},
|
|
|
|
"subtotals": {
|
|
|
|
"alignment": "right"
|
|
|
|
},
|
|
|
|
"termsLabel": {
|
|
|
|
"bold": true,
|
2015-07-24 16:13:17 +02:00
|
|
|
"margin": [0, 0, 0, 4]
|
2015-07-21 20:51:56 +02:00
|
|
|
},
|
|
|
|
"invoiceNumberLabel": {
|
|
|
|
"bold": true
|
|
|
|
},
|
|
|
|
"invoiceNumber": {
|
|
|
|
"bold": true
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
"pageMargins": [40, 80, 40, 50]
|
|
|
|
}
|