2015-07-21 20:51:56 +02:00
|
|
|
{
|
|
|
|
"content": [{
|
|
|
|
"columns": [
|
2015-05-22 09:22:24 +02:00
|
|
|
{
|
2015-07-21 20:51:56 +02:00
|
|
|
"image": "$accountLogo",
|
2015-07-29 21:55:12 +02:00
|
|
|
"fit": [120, 80]
|
2015-07-21 20:51:56 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"stack": "$accountDetails",
|
2016-09-20 08:02:42 +02:00
|
|
|
"margin": [7, 0, 0, 0]
|
2015-07-21 20:51:56 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"stack": "$accountAddress"
|
|
|
|
}
|
2015-05-22 09:22:24 +02:00
|
|
|
]
|
2015-04-13 08:02:33 +02:00
|
|
|
},
|
2015-04-14 12:23:35 +02:00
|
|
|
{
|
2015-07-26 22:05:38 +02:00
|
|
|
"text": "$entityTypeUC",
|
2015-07-29 21:55:12 +02:00
|
|
|
"margin": [8, 30, 8, 5],
|
2015-07-21 20:51:56 +02:00
|
|
|
"style": "entityTypeLabel"
|
2017-10-29 16:36:10 +01:00
|
|
|
|
2015-04-14 12:23:35 +02:00
|
|
|
},
|
2015-04-13 08:02:33 +02:00
|
|
|
{
|
2015-07-21 20:51:56 +02:00
|
|
|
"table": {
|
|
|
|
"headerRows": 1,
|
|
|
|
"widths": ["auto", "auto", "*"],
|
|
|
|
"body": [
|
2015-05-22 09:22:24 +02:00
|
|
|
[
|
|
|
|
{
|
2017-10-29 16:36:10 +01:00
|
|
|
"table": {
|
2015-07-21 20:51:56 +02:00
|
|
|
"body": "$invoiceDetails"
|
2015-05-22 09:22:24 +02:00
|
|
|
},
|
2015-09-20 23:05:02 +02:00
|
|
|
"margin": [0, 0, 12, 0],
|
2015-07-21 20:51:56 +02:00
|
|
|
"layout": "noBorders"
|
2017-10-29 16:36:10 +01:00
|
|
|
},
|
2015-05-22 09:22:24 +02:00
|
|
|
{
|
2015-07-21 20:51:56 +02:00
|
|
|
"stack": "$clientDetails"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ""
|
|
|
|
}
|
2015-05-22 09:22:24 +02:00
|
|
|
]
|
|
|
|
]
|
2015-04-13 08:02:33 +02:00
|
|
|
},
|
2015-07-21 20:51:56 +02:00
|
|
|
"layout": {
|
2015-07-26 22:05:38 +02:00
|
|
|
"hLineWidth": "$firstAndLast:.5",
|
|
|
|
"vLineWidth": "$none",
|
2015-07-21 20:51:56 +02:00
|
|
|
"hLineColor": "#D8D8D8",
|
2017-10-29 16:36:10 +01:00
|
|
|
"paddingLeft": "$amount:8",
|
|
|
|
"paddingRight": "$amount:8",
|
|
|
|
"paddingTop": "$amount:6",
|
2015-09-20 23:05:02 +02:00
|
|
|
"paddingBottom": "$amount:6"
|
2015-05-22 09:22:24 +02:00
|
|
|
}
|
2015-04-13 08:02:33 +02:00
|
|
|
},
|
|
|
|
{
|
2015-07-21 20:51:56 +02:00
|
|
|
"style": "invoiceLineItemsTable",
|
|
|
|
"table": {
|
|
|
|
"headerRows": 1,
|
|
|
|
"widths": "$invoiceLineItemColumns",
|
|
|
|
"body": "$invoiceLineItems"
|
2015-04-14 12:23:35 +02:00
|
|
|
},
|
2015-07-21 20:51:56 +02:00
|
|
|
"layout": {
|
2015-07-26 22:05:38 +02:00
|
|
|
"hLineWidth": "$notFirst:.5",
|
|
|
|
"vLineWidth": "$none",
|
2015-07-21 20:51:56 +02:00
|
|
|
"hLineColor": "#D8D8D8",
|
2017-10-29 16:36:10 +01:00
|
|
|
"paddingLeft": "$amount:8",
|
|
|
|
"paddingRight": "$amount:8",
|
|
|
|
"paddingTop": "$amount:14",
|
|
|
|
"paddingBottom": "$amount:14"
|
2015-07-21 20:51:56 +02:00
|
|
|
}
|
|
|
|
},
|
2015-04-13 22:45:09 +02:00
|
|
|
{
|
2017-10-29 16:36:10 +01:00
|
|
|
"columns": [
|
2015-07-21 20:51:56 +02:00
|
|
|
"$notesAndTerms",
|
|
|
|
{
|
|
|
|
"table": {
|
2015-08-10 17:48:41 +02:00
|
|
|
"widths": ["*", "40%"],
|
2015-07-21 20:51:56 +02:00
|
|
|
"body": "$subtotals"
|
2015-05-22 09:22:24 +02:00
|
|
|
},
|
2015-07-21 20:51:56 +02:00
|
|
|
"layout": {
|
2015-07-26 22:05:38 +02:00
|
|
|
"hLineWidth": "$none",
|
|
|
|
"vLineWidth": "$none",
|
2017-10-29 16:36:10 +01:00
|
|
|
"paddingLeft": "$amount:34",
|
|
|
|
"paddingRight": "$amount:8",
|
|
|
|
"paddingTop": "$amount:4",
|
|
|
|
"paddingBottom": "$amount:4"
|
2015-07-21 20:51:56 +02:00
|
|
|
}
|
|
|
|
}
|
2015-05-22 09:22:24 +02:00
|
|
|
]
|
2016-04-11 16:44:28 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"stack": [
|
|
|
|
"$invoiceDocuments"
|
|
|
|
],
|
|
|
|
"style": "invoiceDocuments"
|
2015-07-21 20:51:56 +02:00
|
|
|
}
|
2015-05-22 09:22:24 +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]
|
2015-04-14 12:23:35 +02:00
|
|
|
},
|
2015-07-21 20:51:56 +02:00
|
|
|
"footer": {
|
2015-07-24 16:13:17 +02:00
|
|
|
"columns": [
|
|
|
|
{
|
|
|
|
"text": "$invoiceFooter",
|
2015-07-29 21:55:12 +02:00
|
|
|
"alignment": "left"
|
2015-07-24 16:13:17 +02:00
|
|
|
}
|
|
|
|
],
|
2015-07-29 21:55:12 +02:00
|
|
|
"margin": [40, -20, 40, 0]
|
2015-07-21 20:51:56 +02:00
|
|
|
},
|
|
|
|
"styles": {
|
|
|
|
"entityTypeLabel": {
|
2016-01-07 08:08:30 +01:00
|
|
|
"font": "$headerFont",
|
2015-07-21 20:51:56 +02:00
|
|
|
"fontSize": "$fontSizeLargest",
|
2015-07-24 16:13:17 +02:00
|
|
|
"color": "$primaryColor:#37a3c6"
|
2015-07-21 20:51:56 +02:00
|
|
|
},
|
|
|
|
"primaryColor":{
|
2015-07-24 16:13:17 +02:00
|
|
|
"color": "$primaryColor:#37a3c6"
|
2015-07-21 20:51:56 +02:00
|
|
|
},
|
|
|
|
"accountName": {
|
2015-07-24 16:13:17 +02:00
|
|
|
"color": "$primaryColor:#37a3c6",
|
2015-07-21 20:51:56 +02:00
|
|
|
"bold": true
|
|
|
|
},
|
2015-08-10 17:48:41 +02:00
|
|
|
"invoiceDetails": {
|
|
|
|
"margin": [0, 0, 8, 0]
|
2017-10-29 16:36:10 +01:00
|
|
|
},
|
2015-07-21 20:51:56 +02:00
|
|
|
"accountDetails": {
|
|
|
|
"margin": [0, 2, 0, 2]
|
|
|
|
},
|
|
|
|
"clientDetails": {
|
|
|
|
"margin": [0, 2, 0, 2]
|
|
|
|
},
|
|
|
|
"notesAndTerms": {
|
|
|
|
"margin": [0, 2, 0, 2]
|
|
|
|
},
|
|
|
|
"accountAddress": {
|
|
|
|
"margin": [0, 2, 0, 2]
|
|
|
|
},
|
|
|
|
"odd": {
|
|
|
|
"fillColor": "#fbfbfb"
|
|
|
|
},
|
|
|
|
"productKey": {
|
2015-07-24 16:13:17 +02:00
|
|
|
"color": "$primaryColor:#37a3c6",
|
2015-07-21 20:51:56 +02:00
|
|
|
"bold": true
|
|
|
|
},
|
2017-05-14 16:18:30 +02:00
|
|
|
"subtotalsBalanceDueLabel": {
|
2015-08-10 17:48:41 +02:00
|
|
|
"fontSize": "$fontSizeLarger"
|
2015-05-22 09:22:24 +02:00
|
|
|
},
|
2017-05-14 16:18:30 +02:00
|
|
|
"subtotalsBalanceDue": {
|
2015-08-10 17:48:41 +02:00
|
|
|
"fontSize": "$fontSizeLarger",
|
2015-07-24 16:13:17 +02:00
|
|
|
"color": "$primaryColor:#37a3c6"
|
2017-10-29 16:36:10 +01:00
|
|
|
},
|
2015-07-21 20:51:56 +02:00
|
|
|
"invoiceNumber": {
|
|
|
|
"bold": true
|
2015-05-22 09:22:24 +02:00
|
|
|
},
|
2015-07-21 20:51:56 +02:00
|
|
|
"tableHeader": {
|
|
|
|
"bold": true,
|
2015-08-10 17:48:41 +02:00
|
|
|
"fontSize": "$fontSizeLarger"
|
2015-05-22 09:22:24 +02:00
|
|
|
},
|
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"
|
2017-10-29 16:36:10 +01:00
|
|
|
},
|
2015-07-21 20:51:56 +02:00
|
|
|
"invoiceLineItemsTable": {
|
|
|
|
"margin": [0, 16, 0, 16]
|
2015-05-22 09:22:24 +02:00
|
|
|
},
|
2015-07-21 20:51:56 +02:00
|
|
|
"clientName": {
|
|
|
|
"bold": true
|
2015-05-22 09:22:24 +02:00
|
|
|
},
|
2015-07-21 20:51:56 +02:00
|
|
|
"cost": {
|
|
|
|
"alignment": "right"
|
2015-05-22 09:22:24 +02:00
|
|
|
},
|
2015-07-21 20:51:56 +02:00
|
|
|
"quantity": {
|
|
|
|
"alignment": "right"
|
2015-05-22 09:22:24 +02:00
|
|
|
},
|
2015-07-21 20:51:56 +02:00
|
|
|
"tax": {
|
|
|
|
"alignment": "right"
|
2015-05-22 09:22:24 +02:00
|
|
|
},
|
2015-07-21 20:51:56 +02:00
|
|
|
"lineTotal": {
|
|
|
|
"alignment": "right"
|
2015-05-22 09:22:24 +02:00
|
|
|
},
|
2015-07-21 20:51:56 +02:00
|
|
|
"subtotals": {
|
|
|
|
"alignment": "right"
|
2017-10-29 16:36:10 +01:00
|
|
|
},
|
2015-07-21 20:51:56 +02:00
|
|
|
"termsLabel": {
|
2015-07-29 21:55:12 +02:00
|
|
|
"bold": true
|
2015-10-01 22:02:22 +02:00
|
|
|
},
|
2017-10-17 17:35:18 +02:00
|
|
|
"fullheader": {
|
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": [7, 0, 7, 0]
|
|
|
|
},
|
|
|
|
"invoiceDocument": {
|
|
|
|
"margin": [0, 10, 0, 10]
|
2015-10-01 22:02:22 +02:00
|
|
|
}
|
2015-04-14 12:42:59 +02:00
|
|
|
},
|
2015-07-24 16:13:17 +02:00
|
|
|
"pageMargins": [40, 40, 40, 60]
|
2016-09-20 08:02:42 +02:00
|
|
|
}
|