2015-07-21 20:51:56 +02:00
|
|
|
{
|
|
|
|
"content": [
|
|
|
|
{
|
|
|
|
"columns": [
|
|
|
|
{
|
|
|
|
"stack": "$accountDetails"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"stack": "$accountAddress"
|
|
|
|
},
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"image": "$accountLogo",
|
2015-07-29 21:55:12 +02:00
|
|
|
"fit": [120, 80]
|
2015-07-21 20:51:56 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
]},
|
|
|
|
{
|
|
|
|
"columns": [
|
|
|
|
{
|
|
|
|
"width": 340,
|
|
|
|
"stack": "$clientDetails",
|
|
|
|
"margin": [0,40,0,0]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"width":200,
|
|
|
|
"table": {
|
|
|
|
"body": "$invoiceDetails"
|
|
|
|
},
|
2015-08-16 12:06:11 +02:00
|
|
|
"layout": {
|
|
|
|
"hLineWidth": "$none",
|
|
|
|
"vLineWidth": "$none",
|
|
|
|
"hLineColor": "#E6E6E6",
|
|
|
|
"paddingLeft": "$amount:10",
|
|
|
|
"paddingRight": "$amount:10"
|
|
|
|
}
|
2015-07-21 20:51:56 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"canvas": [{ "type": "rect", "x": 0, "y": 0, "w": 515, "h": 25,"r":0, "lineWidth": 1,"color":"#e6e6e6"}],"width":10,"margin":[0,30,0,-43]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"style": "invoiceLineItemsTable",
|
|
|
|
"table": {
|
|
|
|
"headerRows": 1,
|
|
|
|
"widths": "$invoiceLineItemColumns",
|
|
|
|
"body": "$invoiceLineItems"
|
|
|
|
},
|
|
|
|
"layout": {
|
2015-07-26 22:05:38 +02:00
|
|
|
"hLineWidth": "$notFirst:1",
|
|
|
|
"vLineWidth": "$none",
|
2015-07-21 20:51:56 +02:00
|
|
|
"hLineColor": "#e6e6e6",
|
2015-07-26 22:05:38 +02:00
|
|
|
"paddingLeft": "$amount:8",
|
|
|
|
"paddingRight": "$amount:8",
|
|
|
|
"paddingTop": "$amount:8",
|
|
|
|
"paddingBottom": "$amount:8"
|
2015-07-21 20:51:56 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"columns": [
|
|
|
|
"$notesAndTerms",
|
|
|
|
{
|
2015-08-16 12:06:11 +02:00
|
|
|
"width": 160,
|
2015-07-21 20:51:56 +02:00
|
|
|
"style": "subtotals",
|
|
|
|
"table": {
|
2015-08-16 12:06:11 +02:00
|
|
|
"widths": [60, 60],
|
2015-07-21 20:51:56 +02:00
|
|
|
"body": "$subtotals"
|
|
|
|
},
|
|
|
|
"layout": {
|
2015-07-26 22:05:38 +02:00
|
|
|
"hLineWidth": "$none",
|
|
|
|
"vLineWidth": "$none",
|
2015-08-16 12:06:11 +02:00
|
|
|
"paddingLeft": "$amount:10",
|
|
|
|
"paddingRight": "$amount:10",
|
2015-07-26 22:05:38 +02:00
|
|
|
"paddingTop": "$amount:4",
|
|
|
|
"paddingBottom": "$amount:4"
|
2015-07-21 20:51:56 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"footer": {
|
2015-07-24 16:13:17 +02:00
|
|
|
"columns": [
|
|
|
|
{
|
|
|
|
"text": "$invoiceFooter",
|
|
|
|
"alignment": "left",
|
|
|
|
"margin": [0, 0, 0, 12]
|
|
|
|
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"margin": [40, -20, 40, 40]
|
|
|
|
},
|
2015-07-21 20:51:56 +02:00
|
|
|
"defaultStyle": {
|
|
|
|
"fontSize": "$fontSize",
|
|
|
|
"margin": [8, 4, 8, 4]
|
|
|
|
},
|
|
|
|
"styles": {
|
|
|
|
"primaryColor":{
|
|
|
|
"color": "$primaryColor:#299CC2"
|
|
|
|
},
|
|
|
|
"accountDetails": {
|
|
|
|
"margin": [0, 2, 0, 1]
|
|
|
|
},
|
|
|
|
"accountAddress": {
|
|
|
|
"margin": [0, 2, 0, 1]
|
|
|
|
},
|
|
|
|
"clientDetails": {
|
|
|
|
"margin": [0, 2, 0, 1]
|
|
|
|
},
|
|
|
|
"tableHeader": {
|
|
|
|
"bold": true
|
|
|
|
},
|
|
|
|
"invoiceLineItemsTable": {
|
|
|
|
"margin": [0, 16, 0, 16]
|
|
|
|
},
|
|
|
|
"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-08-16 12:06:11 +02:00
|
|
|
},
|
|
|
|
"invoiceDetailBalanceDueLabel": {
|
|
|
|
"fillColor": "#e6e6e6"
|
|
|
|
},
|
|
|
|
"invoiceDetailBalanceDue": {
|
|
|
|
"fillColor": "#e6e6e6"
|
|
|
|
},
|
|
|
|
"balanceDueLabel": {
|
|
|
|
"fillColor": "#e6e6e6"
|
|
|
|
},
|
|
|
|
"balanceDue": {
|
|
|
|
"fillColor": "#e6e6e6"
|
|
|
|
}
|
2015-07-21 20:51:56 +02:00
|
|
|
},
|
2015-07-24 16:13:17 +02:00
|
|
|
"pageMargins": [40, 40, 40, 60]
|
2015-07-21 20:51:56 +02:00
|
|
|
}
|