mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-19 16:01:34 +02:00
Include documents placeholder in invoice designs
This commit is contained in:
parent
db322d3fc7
commit
5a6bd0d0d0
@ -50,7 +50,13 @@
|
|||||||
"paddingTop": "$amount:14",
|
"paddingTop": "$amount:14",
|
||||||
"paddingBottom": "$amount:14"
|
"paddingBottom": "$amount:14"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"stack": [
|
||||||
|
"$invoiceDocuments"
|
||||||
|
],
|
||||||
|
"style": "invoiceDocuments"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"columns": [
|
"columns": [
|
||||||
{
|
{
|
||||||
@ -254,6 +260,12 @@
|
|||||||
"help": {
|
"help": {
|
||||||
"fontSize": "$fontSizeSmaller",
|
"fontSize": "$fontSizeSmaller",
|
||||||
"color": "#737373"
|
"color": "#737373"
|
||||||
|
},
|
||||||
|
"invoiceDocuments": {
|
||||||
|
"margin": [47, 0, 47, 0]
|
||||||
|
},
|
||||||
|
"invoiceDocument": {
|
||||||
|
"margin": [0, 10, 0, 10]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pageMargins": [0, 80, 0, 40]
|
"pageMargins": [0, 80, 0, 40]
|
||||||
|
@ -69,6 +69,12 @@
|
|||||||
"paddingBottom": "$amount:14"
|
"paddingBottom": "$amount:14"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"stack": [
|
||||||
|
"$invoiceDocuments"
|
||||||
|
],
|
||||||
|
"style": "invoiceDocuments"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"columns": [
|
"columns": [
|
||||||
"$notesAndTerms",
|
"$notesAndTerms",
|
||||||
@ -200,6 +206,12 @@
|
|||||||
"help": {
|
"help": {
|
||||||
"fontSize": "$fontSizeSmaller",
|
"fontSize": "$fontSizeSmaller",
|
||||||
"color": "#737373"
|
"color": "#737373"
|
||||||
|
},
|
||||||
|
"invoiceDocuments": {
|
||||||
|
"margin": [7, 0, 7, 0]
|
||||||
|
},
|
||||||
|
"invoiceDocument": {
|
||||||
|
"margin": [0, 10, 0, 10]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pageMargins": [40, 40, 40, 60]
|
"pageMargins": [40, 40, 40, 60]
|
||||||
|
@ -85,166 +85,179 @@
|
|||||||
"margin": [0, 16, 8, 0]
|
"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,
|
"stack": "$accountDetails",
|
||||||
"table": {
|
"margin": [0, -40, 0, 0],
|
||||||
"body": "$invoiceDetails"
|
"width": "*"
|
||||||
},
|
},
|
||||||
"layout": "noBorders",
|
{
|
||||||
"margin": [400, -40, 0, 0]
|
"stack": "$accountAddress",
|
||||||
|
"margin": [0, -40, 0, 0],
|
||||||
|
"width": "*"
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
"defaultStyle": {
|
}
|
||||||
"font": "$bodyFont",
|
],
|
||||||
"fontSize": "$fontSize",
|
"header": [
|
||||||
"margin": [8, 4, 8, 4]
|
{
|
||||||
|
"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": {
|
"accountName": {
|
||||||
"primaryColor":{
|
"margin": [4, 2, 4, 2],
|
||||||
"color": "$primaryColor:#299CC2"
|
"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"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"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]
|
||||||
|
}
|
@ -57,6 +57,12 @@
|
|||||||
"paddingBottom": "$amount:8"
|
"paddingBottom": "$amount:8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"stack": [
|
||||||
|
"$invoiceDocuments"
|
||||||
|
],
|
||||||
|
"style": "invoiceDocuments"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"columns": [
|
"columns": [
|
||||||
"$notesAndTerms",
|
"$notesAndTerms",
|
||||||
@ -166,7 +172,13 @@
|
|||||||
"help": {
|
"help": {
|
||||||
"fontSize": "$fontSizeSmaller",
|
"fontSize": "$fontSizeSmaller",
|
||||||
"color": "#737373"
|
"color": "#737373"
|
||||||
}
|
},
|
||||||
|
"invoiceDocuments": {
|
||||||
|
"margin": [7, 0, 7, 0]
|
||||||
|
},
|
||||||
|
"invoiceDocument": {
|
||||||
|
"margin": [0, 10, 0, 10]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"pageMargins": [40, 40, 40, 60]
|
"pageMargins": [40, 40, 40, 60]
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user