1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00
invoiceninja/storage/templates/business.js

251 lines
6.1 KiB
JavaScript
Raw Normal View History

2016-06-29 21:48:56 +02:00
{
"content": [
{
2017-05-14 16:18:30 +02:00
"columns":
2016-06-29 21:48:56 +02:00
[
{
"image": "$accountLogo",
"fit": [120, 80]
},
{
"width": 300,
"stack": "$accountDetails",
"margin": [140, 0, 0, 0]
},
{
"width": 150,
"stack": "$accountAddress"
}
2017-05-14 16:18:30 +02:00
]
2016-06-29 21:48:56 +02:00
},
{
"columns": [
{
"width": 120,
"stack": [
{"text": "$invoiceIssuedToLabel", "style":"issuedTo"},
"$clientDetails"
],
"margin": [0, 20, 0, 0]
},
{
2017-05-14 16:18:30 +02:00
"canvas": [{ "type": "rect", "x": 20, "y": 0, "w": 174, "h": "$invoiceDetailsHeight","r":10, "lineWidth": 1,"color":"$primaryColor:#eb792d"}],
2017-06-26 20:41:42 +02:00
"width":30,
2016-06-29 21:48:56 +02:00
"margin":[200,25,0,0]
},
{
2017-05-14 16:18:30 +02:00
"table": {
2017-06-26 20:41:42 +02:00
"widths": [70, 76],
2016-06-29 21:48:56 +02:00
"body": "$invoiceDetails"
},
"layout": "noBorders",
"margin": [200, 34, 0, 0]
}
]
},
{"canvas": [{ "type": "rect", "x": 0, "y": 0, "w": 515, "h": 32,"r":8, "lineWidth": 1,"color":"$secondaryColor:#374e6b"}],"width":10,"margin":[0,20,0,-45]},
{
"style": "invoiceLineItemsTable",
"table": {
"headerRows": 1,
"widths": "$invoiceLineItemColumns",
"body": "$invoiceLineItems"
},
"layout": {
"hLineWidth": "$notFirst:1",
"vLineWidth": "$notFirst:.5",
"hLineColor": "#FFFFFF",
"vLineColor": "#FFFFFF",
2017-05-14 16:18:30 +02:00
"paddingLeft": "$amount:8",
"paddingRight": "$amount:8",
"paddingTop": "$amount:12",
"paddingBottom": "$amount:12"
2016-06-29 21:48:56 +02:00
}
2017-05-14 16:18:30 +02:00
},
2016-06-29 21:48:56 +02:00
{
"columns": [
"$notesAndTerms",
{
"stack": [
{
"style": "subtotals",
"table": {
"widths": ["*", "35%"],
"body": "$subtotalsWithoutBalance"
},
"layout": {
"hLineWidth": "$none",
"vLineWidth": "$none",
"paddingLeft": "$amount:34",
"paddingRight": "$amount:8",
"paddingTop": "$amount:4",
"paddingBottom": "$amount:4"
}
},
{
"canvas": [
{
"type": "rect",
2017-08-23 20:24:18 +02:00
"x": 60,
2016-06-29 21:48:56 +02:00
"y": 20,
2017-08-23 20:24:18 +02:00
"w": 198,
2016-06-29 21:48:56 +02:00
"h": 30,
"r": 7,
"lineWidth": 1,
"color": "$secondaryColor:#374e6b"
}
]
},
{
"style": "subtotalsBalance",
"table": {
2017-08-23 20:24:18 +02:00
"widths": ["*", "45%"],
2016-06-29 21:48:56 +02:00
"body": "$subtotalsBalance"
},
"layout": {
"hLineWidth": "$none",
"vLineWidth": "$none",
"paddingLeft": "$amount:34",
"paddingRight": "$amount:8",
"paddingTop": "$amount:4",
"paddingBottom": "$amount:4"
}
}
]
}
]
},
{
"stack": [
"$invoiceDocuments"
],
"style": "invoiceDocuments"
}
],
"footer": {
"columns": [
{
"text": "$invoiceFooter",
"alignment": "left"
}
],
"margin": [40, -20, 40, 0]
2017-05-14 16:18:30 +02:00
},
2016-06-29 21:48:56 +02:00
"defaultStyle": {
"fontSize": "$fontSize",
"margin": [8, 4, 8, 4]
},
"styles": {
"primaryColor":{
"color": "$primaryColor:#299CC2"
},
"accountName": {
"bold": true
},
"accountDetails": {
"color": "#AAA9A9",
"margin": [0,2,0,1]
},
"accountAddress": {
"color": "#AAA9A9",
"margin": [0,2,0,1]
},
"even": {
"fillColor":"#E8E8E8"
},
"odd": {
"fillColor":"#F7F7F7"
},
"productKey": {
"bold": true
},
2017-05-14 16:18:30 +02:00
"subtotalsBalanceDueLabel": {
2016-06-29 21:48:56 +02:00
"fontSize": "$fontSizeLargest",
2017-05-14 16:18:30 +02:00
"color": "#ffffff",
2017-08-23 20:31:01 +02:00
"bold": true
2016-06-29 21:48:56 +02:00
},
2017-05-14 16:18:30 +02:00
"subtotalsBalanceDue": {
2016-06-29 21:48:56 +02:00
"fontSize": "$fontSizeLargest",
"bold": true,
"color":"#ffffff",
2017-08-23 20:31:01 +02:00
"alignment":"right",
"noWrap":true
2016-06-29 21:48:56 +02:00
},
"invoiceDetails": {
"color": "#ffffff"
},
"tableHeader": {
"color": "#ffffff",
"fontSize": "$fontSizeLargest",
"bold": true
},
2017-06-20 12:10:56 +02:00
"secondTableHeader": {
"color": "$secondaryColor:#374e6b"
},
2016-06-29 21:48:56 +02:00
"costTableHeader": {
"alignment": "right"
},
"qtyTableHeader": {
"alignment": "right"
},
"taxTableHeader": {
"alignment": "right"
},
"lineTotalTableHeader": {
"alignment": "right"
2017-05-14 16:18:30 +02:00
},
2016-06-29 21:48:56 +02:00
"issuedTo": {
"margin": [0,2,0,1],
"bold": true,
"color": "#374e6b"
},
"clientDetails": {
"margin": [0,2,0,1]
},
"clientName": {
"color": "$primaryColor:#eb792d"
},
"invoiceLineItemsTable": {
"margin": [0, 10, 0, 10]
},
"invoiceDetailsValue": {
"alignment": "right"
},
"cost": {
"alignment": "right"
},
"quantity": {
"alignment": "right"
},
"tax": {
"alignment": "right"
},
"lineTotal": {
"alignment": "right"
},
"subtotals": {
"alignment": "right"
2017-05-14 16:18:30 +02:00
},
2016-06-29 21:48:56 +02:00
"subtotalsBalance": {
"alignment": "right",
"margin": [0, -25, 0, 0]
2017-05-14 16:18:30 +02:00
},
2016-06-29 21:48:56 +02:00
"termsLabel": {
"bold": true,
"margin": [0, 0, 0, 4]
},
"header": {
"fontSize": "$fontSizeLargest",
"bold": true
},
"subheader": {
"fontSize": "$fontSizeLarger"
},
"help": {
"fontSize": "$fontSizeSmaller",
"color": "#737373"
}
},
"pageMargins": [40, 40, 40, 40]
2017-05-14 16:18:30 +02:00
}