1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 13:42:49 +01:00
invoiceninja/storage/templates/photo.js

182 lines
64 KiB
JavaScript
Raw Normal View History

2016-06-29 21:48:56 +02:00
{
"content": [
{
"columns": [
{
"image": "$accountLogo",
"fit": [120, 80]
},
{
"text": "",
"width": "*"
},
{
"width":180,
"table": {
"body": "$invoiceDetails"
},
"layout": "noBorders"
}]
},
{
"image": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wAARCAEZA4QDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBA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X6AVMm0tGUrM8z8MeDvEF/a+F4dT+JniuHUPE93Pb6ebW9
"margin": [-40, 16, 0, 0],
"width": 595
},
{
"margin": [-20, -150, 0, 0],
"columnGap": 8,
"columns": [
{
"width": "auto",
"text": "$toLabel:",
"style": "bold",
"color":"#cd5138"
},
{
"width": "*",
"stack": "$clientDetails",
"margin": [4, 0, 0, 0]
}
]
},
{
"margin": [-20, 10, 0, 140],
"columnGap": 8,
"columns": [
{
"width": "auto",
"text": "$fromLabel:",
"style": "bold",
"color":"#cd5138"
},
{
"width": "*",
"stack": [
{
"width": 150,
"stack": "$accountDetails"
},
{
"width": 150,
"stack": "$accountAddress"
}
]
}
]
},
{"canvas": [{ "type": "line", "x1": 0, "y1": 5, "x2": 515, "y2": 5, "lineWidth": 1.5}],"margin":[0,0,0,-30]},
{
"style": "invoiceLineItemsTable",
"table": {
"headerRows": 1,
"widths": "$invoiceLineItemColumns",
"body": "$invoiceLineItems"
},
"layout": {
"hLineWidth": "$notFirst:.5",
"vLineWidth": "$none",
"hLineColor": "#000000",
"paddingLeft": "$amount:8",
"paddingRight": "$amount:8",
"paddingTop": "$amount:10",
"paddingBottom": "$amount:10"
}
},
{
"columns": [
"$notesAndTerms",
{
"alignment": "right",
"table": {
"widths": ["*", "40%"],
"body": "$subtotals"
},
"layout": {
"hLineWidth": "$none",
"vLineWidth": "$none",
"paddingLeft": "$amount:34",
"paddingRight": "$amount:8",
"paddingTop": "$amount:4",
"paddingBottom": "$amount:4"
}
}]
},
{
"stack": [
"$invoiceDocuments"
],
"style": "invoiceDocuments"
}
],
"defaultStyle": {
"fontSize": "$fontSize",
"margin": [8, 4, 8, 4]
},
"footer": {
"columns": [
{
"text": "$invoiceFooter",
"alignment": "left"
}
],
"margin": [40, -20, 40, 0]
},
"styles": {
"accountDetails": {
"margin": [0, 0, 0, 3]
},
"accountAddress": {
"margin": [0, 0, 0, 3]
},
"clientDetails": {
"margin": [0, 0, 0, 3]
},
"productKey": {
"color": "$primaryColor:#cd5138"
},
"lineTotal": {
"color": "$primaryColor:#cd5138"
},
"tableHeader": {
"bold": true,
"fontSize": "$fontSizeLarger"
},
"balanceDueLabel": {
"fontSize": "$fontSizeLargest"
},
"balanceDue": {
"fontSize": "$fontSizeLargest",
"color": "$primaryColor:#cd5138"
},
"invoiceLineItemsTable": {
"margin": [0, 0, 0, 16]
},
"cost": {
"alignment": "right"
},
"quantity": {
"alignment": "right"
},
"tax": {
"alignment": "right"
},
"lineTotal": {
"alignment": "right"
},
"termsLabel": {
"bold": true,
"margin": [0, 0, 0, 4]
},
"header": {
"fontSize": "$fontSizeLargest",
"bold": true
},
"help": {
"fontSize": "$fontSizeSmaller",
"color": "#737373"
}
},
"pageMargins": [40, 30, 40, 30]
}