1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00
invoiceninja/storage/templates/clean.js

191 lines
4.8 KiB
JavaScript
Raw Normal View History

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",
2015-07-26 22:05:38 +02:00
"margin": [40, 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"
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
[
{
2015-07-21 20:51:56 +02:00
"table": {
"body": "$invoiceDetails"
2015-05-22 09:22:24 +02:00
},
"margin": [0, 4, 12, 4],
2015-07-21 20:51:56 +02:00
"layout": "noBorders"
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",
2015-07-26 22:05:38 +02:00
"paddingLeft": "$amount:8",
"paddingRight": "$amount:8",
"paddingTop": "$amount:4",
"paddingBottom": "$amount:4"
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",
2015-07-26 22:05:38 +02: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
{
2015-07-29 21:55:12 +02:00
"columns": [
2015-07-21 20:51:56 +02:00
"$notesAndTerms",
{
"table": {
"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",
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
}
}
2015-05-22 09:22:24 +02:00
]
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": {
"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": {
"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
},
"invoiceDetails": {
"margin": [0, 0, 8, 0]
},
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
},
"balanceDueLabel": {
"fontSize": "$fontSizeLarger"
2015-05-22 09:22:24 +02:00
},
2015-07-21 20:51:56 +02:00
"balanceDue": {
"fontSize": "$fontSizeLarger",
2015-07-24 16:13:17 +02:00
"color": "$primaryColor:#37a3c6"
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,
"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"
},
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"
},
"termsLabel": {
2015-07-29 21:55:12 +02:00
"bold": true
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
}