1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 16:31:33 +02:00
invoiceninja/storage/templates/plain.js

139 lines
3.5 KiB
JavaScript
Raw Normal View History

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]
},
{
"canvas": [{ "type": "rect", "x": 0, "y": 0, "w": 175, "h": 15, "r":0, "lineWidth": 1, "color":"#e6e6e6"}],
"width":10,
"margin":[0,70,0,0]
},
{
"width":200,
"table": {
"body": "$invoiceDetails"
},
"layout": "noBorders",
"margin":[0,40,0,0]
}
]
},
{
"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",
{
"canvas": [{ "type": "rect", "x": -360, "y": 0, "w": 200, "h": 20,"r":0, "lineWidth": 2, "color":"#e6e6e6","lineColor":"#e6e6e6"}],"width":10,"margin":[420,37,0,0]
},
{
"style": "subtotals",
"table": {
2015-07-29 21:55:12 +02:00
"widths": ["*", "auto"],
2015-07-21 20:51:56 +02:00
"body": "$subtotals"
},
"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
}
}
]
}
],
"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-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
}