2015-07-21 20:51:56 +02:00
|
|
|
{
|
|
|
|
"content": [
|
|
|
|
{
|
|
|
|
"columns": [
|
|
|
|
{
|
2015-09-07 11:07:55 +02:00
|
|
|
"width": 380,
|
2015-07-21 20:51:56 +02:00
|
|
|
"stack": [
|
2015-07-26 22:05:38 +02:00
|
|
|
{"text":"$yourInvoiceLabelUC", "style": "yourInvoice"},
|
2015-07-21 20:51:56 +02:00
|
|
|
"$clientDetails"
|
|
|
|
],
|
2015-09-07 11:07:55 +02:00
|
|
|
"margin": [60, 100, 0, 10]
|
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-09-07 11:07:55 +02:00
|
|
|
"margin":[-10,100,0,10]
|
2015-07-21 20:51:56 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"table": {
|
|
|
|
"body": "$invoiceDetails"
|
|
|
|
},
|
|
|
|
"layout": "noBorders",
|
2015-09-07 11:07:55 +02:00
|
|
|
"margin": [0, 110, 0, 0]
|
2015-07-21 20:51:56 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"style": "invoiceLineItemsTable",
|
|
|
|
"table": {
|
|
|
|
"headerRows": 1,
|
2015-09-20 23:05:02 +02:00
|
|
|
"widths": ["22%", "*", "14%", "$quantityWidth", "$taxWidth", "22%"],
|
2015-07-21 20:51:56 +02:00
|
|
|
"body": "$invoiceLineItems"
|
|
|
|
},
|
|
|
|
"layout": {
|
2015-07-26 22:05:38 +02:00
|
|
|
"hLineWidth": "$none",
|
|
|
|
"vLineWidth": "$none",
|
|
|
|
"paddingLeft": "$amount:8",
|
|
|
|
"paddingRight": "$amount:8",
|
|
|
|
"paddingTop": "$amount:14",
|
2015-09-04 09:20:30 +02:00
|
|
|
"paddingBottom": "$amount:14"
|
2015-07-21 20:51:56 +02:00
|
|
|
}
|
2016-03-25 00:21:36 +01:00
|
|
|
},
|
2015-07-21 20:51:56 +02:00
|
|
|
{
|
|
|
|
"columns": [
|
|
|
|
{
|
|
|
|
"width": 46,
|
|
|
|
"text": " "
|
|
|
|
},
|
|
|
|
"$notesAndTerms",
|
|
|
|
{
|
|
|
|
"table": {
|
2015-08-10 17:48:41 +02:00
|
|
|
"widths": ["*", "40%"],
|
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-10 17:48:41 +02:00
|
|
|
"paddingLeft": "$amount:8",
|
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
|
|
|
}
|
|
|
|
}]
|
2016-04-11 16:44:28 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"stack": [
|
|
|
|
"$invoiceDocuments"
|
|
|
|
],
|
|
|
|
"style": "invoiceDocuments"
|
|
|
|
}
|
2015-07-21 20:51:56 +02:00
|
|
|
],
|
2015-09-20 23:05:02 +02:00
|
|
|
"footer":
|
|
|
|
[
|
|
|
|
{"canvas": [{ "type": "line", "x1": 0, "y1": 0, "x2": 600, "y2": 0,"lineWidth": 100,"lineColor":"$secondaryColor:#292526"}]},
|
2015-07-21 20:51:56 +02:00
|
|
|
{
|
2015-09-20 23:05:02 +02:00
|
|
|
"columns":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"text": "$invoiceFooter",
|
|
|
|
"margin": [40, -40, 40, 0],
|
|
|
|
"alignment": "left",
|
|
|
|
"color": "#FFFFFF"
|
|
|
|
}
|
|
|
|
]
|
2015-07-21 20:51:56 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"header": [
|
2015-09-07 11:07:55 +02:00
|
|
|
{
|
|
|
|
"canvas": [
|
|
|
|
{
|
|
|
|
"type": "line",
|
|
|
|
"x1": 0,
|
|
|
|
"y1": 0,
|
|
|
|
"x2": 600,
|
|
|
|
"y2": 0,
|
|
|
|
"lineWidth": 200,
|
2015-09-20 23:05:02 +02:00
|
|
|
"lineColor": "$secondaryColor:#292526"
|
2015-09-07 11:07:55 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"width": 10
|
|
|
|
},
|
|
|
|
{
|
2015-07-24 16:13:17 +02:00
|
|
|
"columns": [
|
2015-09-07 11:07:55 +02:00
|
|
|
{
|
|
|
|
"image": "$accountLogo",
|
2016-05-08 18:25:29 +02:00
|
|
|
"fit": [120, 60],
|
|
|
|
"margin": [30, 16, 0, 0]
|
2015-09-07 11:07:55 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"stack": "$accountDetails",
|
|
|
|
"margin": [
|
|
|
|
0,
|
|
|
|
16,
|
|
|
|
0,
|
|
|
|
0
|
|
|
|
],
|
|
|
|
"width": 140
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"stack": "$accountAddress",
|
|
|
|
"margin": [
|
|
|
|
20,
|
|
|
|
16,
|
|
|
|
0,
|
|
|
|
0
|
|
|
|
]
|
|
|
|
}
|
2015-07-24 16:13:17 +02:00
|
|
|
]
|
2015-09-07 11:07:55 +02:00
|
|
|
}
|
|
|
|
],
|
2015-07-21 20:51:56 +02:00
|
|
|
"defaultStyle": {
|
2016-01-07 08:08:30 +01:00
|
|
|
"font": "$bodyFont",
|
2015-07-21 20:51:56 +02:00
|
|
|
"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-09-07 11:07:55 +02:00
|
|
|
"margin": [4, 2, 4, 1],
|
2015-07-24 16:13:17 +02:00
|
|
|
"color": "$primaryColor:#36a498"
|
2015-07-21 20:51:56 +02:00
|
|
|
},
|
|
|
|
"accountDetails": {
|
2015-09-07 11:07:55 +02:00
|
|
|
"margin": [4, 2, 4, 1],
|
|
|
|
"color": "#FFFFFF"
|
2015-07-21 20:51:56 +02:00
|
|
|
},
|
2015-07-24 16:13:17 +02:00
|
|
|
"accountAddress": {
|
2015-09-07 11:07:55 +02:00
|
|
|
"margin": [4, 2, 4, 1],
|
|
|
|
"color": "#FFFFFF"
|
|
|
|
},
|
|
|
|
"clientDetails": {
|
|
|
|
"margin": [0, 2, 0, 1]
|
2015-07-24 16:13:17 +02:00
|
|
|
},
|
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
|
|
|
|
},
|
2015-09-04 09:20:30 +02:00
|
|
|
"costTableHeader": {
|
|
|
|
"alignment": "right"
|
|
|
|
},
|
|
|
|
"qtyTableHeader": {
|
|
|
|
"alignment": "right"
|
|
|
|
},
|
2015-09-07 11:07:55 +02:00
|
|
|
"taxTableHeader": {
|
|
|
|
"alignment": "right"
|
|
|
|
},
|
2015-09-04 09:20:30 +02:00
|
|
|
"lineTotalTableHeader": {
|
|
|
|
"alignment": "right",
|
|
|
|
"margin": [0, 0, 40, 0]
|
|
|
|
},
|
2015-07-21 20:51:56 +02:00
|
|
|
"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": {
|
2016-01-07 08:08:30 +01:00
|
|
|
"font": "$headerFont",
|
2015-07-21 20:51:56 +02:00
|
|
|
"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-09-20 23:05:02 +02:00
|
|
|
},
|
2015-07-21 20:51:56 +02:00
|
|
|
"clientName": {
|
|
|
|
"bold": true
|
|
|
|
},
|
|
|
|
"cost": {
|
|
|
|
"alignment": "right"
|
|
|
|
},
|
|
|
|
"quantity": {
|
|
|
|
"alignment": "right"
|
|
|
|
},
|
|
|
|
"tax": {
|
|
|
|
"alignment": "right"
|
|
|
|
},
|
|
|
|
"lineTotal": {
|
|
|
|
"alignment": "right",
|
2015-09-04 09:20:30 +02:00
|
|
|
"margin": [0, 0, 40, 0]
|
2015-07-21 20:51:56 +02:00
|
|
|
},
|
|
|
|
"subtotals": {
|
|
|
|
"alignment": "right",
|
|
|
|
"margin": [0,0,40,0]
|
2015-09-20 23:05:02 +02:00
|
|
|
},
|
2015-07-21 20:51:56 +02:00
|
|
|
"termsLabel": {
|
|
|
|
"bold": true,
|
2015-07-24 16:13:17 +02:00
|
|
|
"margin": [0, 0, 0, 4]
|
2015-10-01 22:02:22 +02:00
|
|
|
},
|
|
|
|
"header": {
|
2016-01-07 08:08:30 +01:00
|
|
|
"font": "$headerFont",
|
2015-10-01 22:02:22 +02:00
|
|
|
"fontSize": "$fontSizeLargest",
|
|
|
|
"bold": true
|
|
|
|
},
|
|
|
|
"subheader": {
|
2016-01-07 08:08:30 +01:00
|
|
|
"font": "$headerFont",
|
2015-10-01 22:02:22 +02:00
|
|
|
"fontSize": "$fontSizeLarger"
|
2015-12-13 21:12:54 +01:00
|
|
|
},
|
|
|
|
"help": {
|
|
|
|
"fontSize": "$fontSizeSmaller",
|
|
|
|
"color": "#737373"
|
2016-03-25 00:21:36 +01:00
|
|
|
},
|
|
|
|
"invoiceDocuments": {
|
|
|
|
"margin": [47, 0, 47, 0]
|
|
|
|
},
|
|
|
|
"invoiceDocument": {
|
|
|
|
"margin": [0, 10, 0, 10]
|
2015-09-20 23:05:02 +02:00
|
|
|
}
|
2015-07-21 20:51:56 +02:00
|
|
|
},
|
|
|
|
"pageMargins": [0, 80, 0, 40]
|
|
|
|
}
|