1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-18 23:42:25 +02:00

Include documents placeholder in invoice designs

This commit is contained in:
Joshua Dwire 2016-03-24 19:21:36 -04:00
parent db322d3fc7
commit 5a6bd0d0d0
4 changed files with 204 additions and 155 deletions

View File

@ -50,7 +50,13 @@
"paddingTop": "$amount:14",
"paddingBottom": "$amount:14"
}
},
},
{
"stack": [
"$invoiceDocuments"
],
"style": "invoiceDocuments"
},
{
"columns": [
{
@ -254,6 +260,12 @@
"help": {
"fontSize": "$fontSizeSmaller",
"color": "#737373"
},
"invoiceDocuments": {
"margin": [47, 0, 47, 0]
},
"invoiceDocument": {
"margin": [0, 10, 0, 10]
}
},
"pageMargins": [0, 80, 0, 40]

View File

@ -69,6 +69,12 @@
"paddingBottom": "$amount:14"
}
},
{
"stack": [
"$invoiceDocuments"
],
"style": "invoiceDocuments"
},
{
"columns": [
"$notesAndTerms",
@ -200,6 +206,12 @@
"help": {
"fontSize": "$fontSizeSmaller",
"color": "#737373"
},
"invoiceDocuments": {
"margin": [7, 0, 7, 0]
},
"invoiceDocument": {
"margin": [0, 10, 0, 10]
}
},
"pageMargins": [40, 40, 40, 60]

View File

@ -85,166 +85,179 @@
"margin": [0, 16, 8, 0]
}
]
} ],
"footer": [
{
"canvas": [
{
"type": "line", "x1": 0, "y1": 0, "x2": 600, "y2": 0,"lineWidth": 100,"lineColor":"$primaryColor:#f26621"
}]
,"width":10
},
{
"columns": [
{
"width": 350,
"stack": [
{
"text": "$invoiceFooter",
"margin": [40, -40, 40, 0],
"alignment": "left",
"color": "#FFFFFF"
}
]
},
{
"stack": "$accountDetails",
"margin": [0, -40, 0, 0],
"width": "*"
},
{
"stack": "$accountAddress",
"margin": [0, -40, 0, 0],
"width": "*"
}
]
}
],
"header": [
{
"canvas": [{ "type": "line", "x1": 0, "y1": 0, "x2": 600, "y2": 0,"lineWidth": 200,"lineColor":"$primaryColor:#f26621"}],"width":10
},
{
"columns": [
"stack": [
"$invoiceDocuments"
],
"style": "invoiceDocuments"
}
],
"footer": [
{
"canvas": [
{
"type": "line", "x1": 0, "y1": 0, "x2": 600, "y2": 0,"lineWidth": 100,"lineColor":"$primaryColor:#f26621"
}]
,"width":10
},
{
"columns": [
{
"width": 350,
"stack": [
{
"text": "$accountName", "bold": true,"font":"$headerFont","fontSize":30,"color":"#ffffff","margin":[40,20,0,0],"width":350
"text": "$invoiceFooter",
"margin": [40, -40, 40, 0],
"alignment": "left",
"color": "#FFFFFF"
}
]
},
{
"width": 300,
"table": {
"body": "$invoiceDetails"
},
"layout": "noBorders",
"margin": [400, -40, 0, 0]
"stack": "$accountDetails",
"margin": [0, -40, 0, 0],
"width": "*"
},
{
"stack": "$accountAddress",
"margin": [0, -40, 0, 0],
"width": "*"
}
],
"defaultStyle": {
"font": "$bodyFont",
"fontSize": "$fontSize",
"margin": [8, 4, 8, 4]
]
}
],
"header": [
{
"canvas": [{ "type": "line", "x1": 0, "y1": 0, "x2": 600, "y2": 0,"lineWidth": 200,"lineColor":"$primaryColor:#f26621"}],"width":10
},
{
"columns": [
{
"text": "$accountName", "bold": true,"font":"$headerFont","fontSize":30,"color":"#ffffff","margin":[40,20,0,0],"width":350
}
]
},
{
"width": 300,
"table": {
"body": "$invoiceDetails"
},
"layout": "noBorders",
"margin": [400, -40, 0, 0]
}
],
"defaultStyle": {
"font": "$bodyFont",
"fontSize": "$fontSize",
"margin": [8, 4, 8, 4]
},
"styles": {
"primaryColor":{
"color": "$primaryColor:#299CC2"
},
"styles": {
"primaryColor":{
"color": "$primaryColor:#299CC2"
},
"accountName": {
"margin": [4, 2, 4, 2],
"color": "$primaryColor:#299CC2"
},
"accountDetails": {
"margin": [4, 2, 4, 2],
"color": "#FFFFFF"
},
"accountAddress": {
"margin": [4, 2, 4, 2],
"color": "#FFFFFF"
},
"clientDetails": {
"margin": [0, 2, 4, 2]
},
"invoiceDetails": {
"color": "#FFFFFF"
},
"invoiceLineItemsTable": {
"margin": [0, 0, 0, 16]
},
"productKey": {
"bold": true
},
"clientName": {
"bold": true
},
"tableHeader": {
"bold": true,
"color": "#FFFFFF",
"fontSize": "$fontSizeLargest",
"fillColor": "$secondaryColor:#403d3d"
},
"costTableHeader": {
"alignment": "right"
},
"qtyTableHeader": {
"alignment": "right"
},
"taxTableHeader": {
"alignment": "right"
},
"lineTotalTableHeader": {
"alignment": "right"
},
"balanceDueLabel": {
"fontSize": "$fontSizeLargest",
"color":"#FFFFFF",
"alignment":"right",
"bold": true
},
"balanceDue": {
"fontSize": "$fontSizeLargest",
"color":"#FFFFFF",
"bold": true,
"alignment":"right"
},
"cost": {
"alignment": "right"
},
"quantity": {
"alignment": "right"
},
"tax": {
"alignment": "right"
},
"lineTotal": {
"alignment": "right"
},
"subtotals": {
"alignment": "right"
},
"termsLabel": {
"bold": true,
"margin": [0, 0, 0, 4]
},
"invoiceNumberLabel": {
"bold": true
},
"invoiceNumber": {
"bold": true
},
"header": {
"font": "$headerFont",
"fontSize": "$fontSizeLargest",
"bold": true
},
"subheader": {
"font": "$headerFont",
"fontSize": "$fontSizeLarger"
},
"help": {
"fontSize": "$fontSizeSmaller",
"color": "#737373"
}
"accountName": {
"margin": [4, 2, 4, 2],
"color": "$primaryColor:#299CC2"
},
"pageMargins": [40, 120, 40, 50]
}
"accountDetails": {
"margin": [4, 2, 4, 2],
"color": "#FFFFFF"
},
"accountAddress": {
"margin": [4, 2, 4, 2],
"color": "#FFFFFF"
},
"clientDetails": {
"margin": [0, 2, 4, 2]
},
"invoiceDetails": {
"color": "#FFFFFF"
},
"invoiceLineItemsTable": {
"margin": [0, 0, 0, 16]
},
"productKey": {
"bold": true
},
"clientName": {
"bold": true
},
"tableHeader": {
"bold": true,
"color": "#FFFFFF",
"fontSize": "$fontSizeLargest",
"fillColor": "$secondaryColor:#403d3d"
},
"costTableHeader": {
"alignment": "right"
},
"qtyTableHeader": {
"alignment": "right"
},
"taxTableHeader": {
"alignment": "right"
},
"lineTotalTableHeader": {
"alignment": "right"
},
"balanceDueLabel": {
"fontSize": "$fontSizeLargest",
"color":"#FFFFFF",
"alignment":"right",
"bold": true
},
"balanceDue": {
"fontSize": "$fontSizeLargest",
"color":"#FFFFFF",
"bold": true,
"alignment":"right"
},
"cost": {
"alignment": "right"
},
"quantity": {
"alignment": "right"
},
"tax": {
"alignment": "right"
},
"lineTotal": {
"alignment": "right"
},
"subtotals": {
"alignment": "right"
},
"termsLabel": {
"bold": true,
"margin": [0, 0, 0, 4]
},
"invoiceNumberLabel": {
"bold": true
},
"invoiceNumber": {
"bold": true
},
"header": {
"font": "$headerFont",
"fontSize": "$fontSizeLargest",
"bold": true
},
"subheader": {
"font": "$headerFont",
"fontSize": "$fontSizeLarger"
},
"help": {
"fontSize": "$fontSizeSmaller",
"color": "#737373"
},
"invoiceDocuments": {
"margin": [7, 0, 7, 0]
},
"invoiceDocument": {
"margin": [0, 10, 0, 10]
}
},
"pageMargins": [40, 120, 40, 50]
}

View File

@ -57,6 +57,12 @@
"paddingBottom": "$amount:8"
}
},
{
"stack": [
"$invoiceDocuments"
],
"style": "invoiceDocuments"
},
{
"columns": [
"$notesAndTerms",
@ -166,7 +172,13 @@
"help": {
"fontSize": "$fontSizeSmaller",
"color": "#737373"
}
},
"invoiceDocuments": {
"margin": [7, 0, 7, 0]
},
"invoiceDocument": {
"margin": [0, 10, 0, 10]
}
},
"pageMargins": [40, 40, 40, 60]
}