Added option to show/hide signature on the PDF

This commit is contained in:
Hillel Coren 2017-12-27 20:34:36 +02:00
parent 97e4bf0e8d
commit 0fbe83eaaf
19 changed files with 2649 additions and 2408 deletions

View File

@ -180,6 +180,7 @@ class Account extends Eloquent
'task_rate', 'task_rate',
'inclusive_taxes', 'inclusive_taxes',
'convert_products', 'convert_products',
'signature_on_pdf',
]; ];
/** /**

View File

@ -992,6 +992,7 @@ class Invoice extends EntityModel implements BalanceAffecting
'date_format', 'date_format',
'datetime_format', 'datetime_format',
'timezone', 'timezone',
'signature_on_pdf',
]); ]);
foreach ($this->invitations as $invitation) { foreach ($this->invitations as $invitation) {

View File

@ -278,6 +278,7 @@ class AccountTransformer extends EntityTransformer
'task_rate' => (float) $account->task_rate, 'task_rate' => (float) $account->task_rate,
'inclusive_taxes' => (bool) $account->inclusive_taxes, 'inclusive_taxes' => (bool) $account->inclusive_taxes,
'convert_products' => (bool) $account->convert_products, 'convert_products' => (bool) $account->convert_products,
'signature_on_pdf' => (bool) $account->signature_on_pdf,
]; ];
} }
} }

View File

@ -51,6 +51,7 @@ class AddRemember2faToken extends Migration
Schema::table('accounts', function ($table) { Schema::table('accounts', function ($table) {
$table->boolean('convert_products')->default(false); $table->boolean('convert_products')->default(false);
$table->boolean('enable_reminder4')->default(false); $table->boolean('enable_reminder4')->default(false);
$table->boolean('signature_on_pdf')->default(false);
}); });
Schema::table('invoice_items', function ($table) { Schema::table('invoice_items', function ($table) {
@ -125,6 +126,7 @@ class AddRemember2faToken extends Migration
Schema::table('accounts', function ($table) { Schema::table('accounts', function ($table) {
$table->dropColumn('convert_products'); $table->dropColumn('convert_products');
$table->dropColumn('enable_reminder4'); $table->dropColumn('enable_reminder4');
$table->dropColumn('signature_on_pdf');
}); });
Schema::table('invoice_items', function ($table) { Schema::table('invoice_items', function ($table) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -366,6 +366,10 @@ NINJA.signatureImage = function(invoice) {
return blankImage; return blankImage;
} }
if (! parseInt(invoice.account.signature_on_pdf)) {
return blankImage;
}
return invoice.invitations[0].signature_base64 || blankImage; return invoice.invitations[0].signature_base64 || blankImage;
} }
@ -374,8 +378,11 @@ NINJA.signatureDate = function(invoice) {
return ''; return '';
} }
var date = invoice.invitations[0].signature_date; if (! parseInt(invoice.account.signature_on_pdf)) {
return '';
}
var date = invoice.invitations[0].signature_date;
return NINJA.formatDateTime(date, invoice.account); return NINJA.formatDateTime(date, invoice.account);
} }

View File

@ -2639,7 +2639,9 @@ $LANG = array(
'view_project' => 'View Project', 'view_project' => 'View Project',
'summary' => 'Summary', 'summary' => 'Summary',
'endless_reminder' => 'Endless Reminder', 'endless_reminder' => 'Endless Reminder',
'signature_on_invoice_help' => 'Add the following code to show your client\'s signature on the PDF.' 'signature_on_invoice_help' => 'Add the following code to show your client\'s signature on the PDF.',
'signature_on_pdf' => 'Show on PDF',
'signature_on_pdf_help' => 'Show the client signature on the invoice PDF.',
); );

View File

@ -37,6 +37,7 @@
{!! Former::populateField('show_accept_quote_terms', intval($account->show_accept_quote_terms)) !!} {!! Former::populateField('show_accept_quote_terms', intval($account->show_accept_quote_terms)) !!}
{!! Former::populateField('require_invoice_signature', intval($account->require_invoice_signature)) !!} {!! Former::populateField('require_invoice_signature', intval($account->require_invoice_signature)) !!}
{!! Former::populateField('require_quote_signature', intval($account->require_quote_signature)) !!} {!! Former::populateField('require_quote_signature', intval($account->require_quote_signature)) !!}
{!! Former::populateField('signature_on_pdf', intval($account->signature_on_pdf)) !!}
@include('accounts.nav', ['selected' => ACCOUNT_CLIENT_PORTAL, 'advanced' => true]) @include('accounts.nav', ['selected' => ACCOUNT_CLIENT_PORTAL, 'advanced' => true])
@ -195,11 +196,17 @@
->help(trans('texts.require_invoice_signature_help')) ->help(trans('texts.require_invoice_signature_help'))
->label(trans('texts.require_invoice_signature')) ->label(trans('texts.require_invoice_signature'))
->value(1) !!} ->value(1) !!}
{!! Former::checkbox('require_quote_signature') {!! Former::checkbox('require_quote_signature')
->text(trans('texts.enable')) ->text(trans('texts.enable'))
->help(trans('texts.require_quote_signature_help')) ->help(trans('texts.require_quote_signature_help'))
->label(trans('texts.require_quote_signature')) ->label(trans('texts.require_quote_signature'))
->value(1) !!} ->value(1) !!}
{!! Former::checkbox('signature_on_pdf')
->text(trans('texts.enable'))
->help(trans('texts.signature_on_pdf_help'))
->value(1) !!}
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,386 +1,408 @@
{ {
"content":[ "content":[
{ {
"columns":[ "columns":[
{ {
"width":380, "width":380,
"stack":[ "stack":[
{ {
"text":"$yourInvoiceLabelUC", "text":"$yourInvoiceLabelUC",
"style":"yourInvoice" "style":"yourInvoice"
}, },
"$clientDetails" "$clientDetails"
], ],
"margin":[ "margin":[
60, 60,
100, 100,
0, 0,
10 10
] ]
}, },
{ {
"canvas":[ "canvas":[
{ {
"type":"rect", "type":"rect",
"x":0, "x":0,
"y":0, "y":0,
"w":225, "w":225,
"h":"$invoiceDetailsHeight", "h":"$invoiceDetailsHeight",
"r":0, "r":0,
"lineWidth":1, "lineWidth":1,
"color":"$primaryColor:#36a498" "color":"$primaryColor:#36a498"
} }
], ],
"width":10, "width":10,
"margin":[ "margin":[
-10, -10,
100, 100,
0, 0,
10 10
] ]
}, },
{ {
"table":{ "table":{
"body":"$invoiceDetails" "body":"$invoiceDetails"
}, },
"layout":"noBorders", "layout":"noBorders",
"margin":[ "margin":[
0, 0,
110, 110,
0, 0,
0 0
] ]
} }
] ]
}, },
{ {
"style":"invoiceLineItemsTable", "style":"invoiceLineItemsTable",
"table":{ "table":{
"headerRows":1, "headerRows":1,
"widths":"$invoiceLineItemColumns", "widths":"$invoiceLineItemColumns",
"body":"$invoiceLineItems" "body":"$invoiceLineItems"
}, },
"layout":{ "layout":{
"hLineWidth":"$none", "hLineWidth":"$none",
"vLineWidth":"$none", "vLineWidth":"$none",
"paddingLeft":"$amount:8", "paddingLeft":"$amount:8",
"paddingRight":"$amount:8", "paddingRight":"$amount:8",
"paddingTop":"$amount:14", "paddingTop":"$amount:14",
"paddingBottom":"$amount:14" "paddingBottom":"$amount:14"
} }
}, },
{ {
"columns":[ "columns":[
{ {
"width":46, "width":46,
"text":" " "text":" "
}, },
"$notesAndTerms", "$notesAndTerms",
{ {
"table":{ "table":{
"widths":[ "widths":[
"*", "*",
"40%" "40%"
], ],
"body":"$subtotals" "body":"$subtotals"
}, },
"layout":{ "layout":{
"hLineWidth":"$none", "hLineWidth":"$none",
"vLineWidth":"$none", "vLineWidth":"$none",
"paddingLeft":"$amount:8", "paddingLeft":"$amount:8",
"paddingRight":"$amount:8", "paddingRight":"$amount:8",
"paddingTop":"$amount:4", "paddingTop":"$amount:4",
"paddingBottom":"$amount:4" "paddingBottom":"$amount:4"
} }
} }
] ]
}, },
{ {
"stack":[ "stack": [
"$invoiceDocuments" {
], "image": "$signatureBase64",
"style":"invoiceDocuments" "margin": [
} 200,
], 10,
"footer":[ 0,
{ 0
"canvas":[ ]
{ },
"type":"line", {
"x1":0, "text": "$signatureDate",
"y1":0, "margin": [
"x2":600, 200,
"y2":0, -40,
"lineWidth":100, 0,
"lineColor":"$secondaryColor:#292526" 0
} ]
] }
}, ]
{ },
"columns":[ {
{ "stack":[
"text":"$invoiceFooter", "$invoiceDocuments"
"margin":[ ],
40, "style":"invoiceDocuments"
-40, }
40, ],
0 "footer":[
], {
"alignment":"left", "canvas":[
"color":"#FFFFFF" {
} "type":"line",
] "x1":0,
} "y1":0,
], "x2":600,
"header":[ "y2":0,
{ "lineWidth":100,
"canvas":[ "lineColor":"$secondaryColor:#292526"
{ }
"type":"line", ]
"x1":0, },
"y1":0, {
"x2":600, "columns":[
"y2":0, {
"lineWidth":200, "text":"$invoiceFooter",
"lineColor":"$secondaryColor:#292526" "margin":[
} 40,
], -40,
"width":10 40,
}, 0
{ ],
"columns":[ "alignment":"left",
{ "color":"#FFFFFF"
"image":"$accountLogo", }
"fit":[ ]
120, }
60 ],
], "header":[
"margin":[ {
30, "canvas":[
16, {
0, "type":"line",
0 "x1":0,
] "y1":0,
}, "x2":600,
{ "y2":0,
"stack":"$accountDetails", "lineWidth":200,
"margin":[ "lineColor":"$secondaryColor:#292526"
0, }
16, ],
0, "width":10
0 },
], {
"width":140 "columns":[
}, {
{ "image":"$accountLogo",
"stack":"$accountAddress", "fit":[
"margin":[ 120,
20, 60
16, ],
0, "margin":[
0 30,
] 16,
} 0,
] 0
} ]
], },
"defaultStyle":{ {
"font":"$bodyFont", "stack":"$accountDetails",
"fontSize":"$fontSize", "margin":[
"margin":[ 0,
8, 16,
4, 0,
8, 0
4 ],
] "width":140
}, },
"styles":{ {
"primaryColor":{ "stack":"$accountAddress",
"color":"$primaryColor:#36a498" "margin":[
}, 20,
"accountName":{ 16,
"bold":true, 0,
"margin":[ 0
4, ]
2, }
4, ]
1 }
], ],
"color":"$primaryColor:#36a498" "defaultStyle":{
}, "font":"$bodyFont",
"accountDetails":{ "fontSize":"$fontSize",
"margin":[ "margin":[
4, 8,
2, 4,
4, 8,
1 4
], ]
"color":"#FFFFFF" },
}, "styles":{
"accountAddress":{ "primaryColor":{
"margin":[ "color":"$primaryColor:#36a498"
4, },
2, "accountName":{
4, "bold":true,
1 "margin":[
], 4,
"color":"#FFFFFF" 2,
}, 4,
"clientDetails":{ 1
"margin":[ ],
0, "color":"$primaryColor:#36a498"
2, },
0, "accountDetails":{
1 "margin":[
] 4,
}, 2,
"odd":{ 4,
"fillColor":"#ebebeb" 1
}, ],
"subtotalsBalanceDueLabel":{ "color":"#FFFFFF"
"fontSize":"$fontSizeLargest", },
"bold":true "accountAddress":{
}, "margin":[
"subtotalsBalanceDue":{ 4,
"fontSize":"$fontSizeLargest", 2,
"color":"$primaryColor:#36a498", 4,
"bold":true 1
}, ],
"invoiceDetails":{ "color":"#FFFFFF"
"color":"#ffffff" },
}, "clientDetails":{
"invoiceNumber":{ "margin":[
"bold":true 0,
}, 2,
"tableHeader":{ 0,
"fontSize":12, 1
"bold":true ]
}, },
"costTableHeader":{ "odd":{
"alignment":"right" "fillColor":"#ebebeb"
}, },
"qtyTableHeader":{ "subtotalsBalanceDueLabel":{
"alignment":"right" "fontSize":"$fontSizeLargest",
}, "bold":true
"taxTableHeader":{ },
"alignment":"right" "subtotalsBalanceDue":{
}, "fontSize":"$fontSizeLargest",
"lineTotalTableHeader":{ "color":"$primaryColor:#36a498",
"alignment":"right", "bold":true
"margin":[ },
0, "invoiceDetails":{
0, "color":"#ffffff"
40, },
0 "invoiceNumber":{
] "bold":true
}, },
"firstColumn":{ "tableHeader":{
"margin":[ "fontSize":12,
40, "bold":true
0, },
0, "costTableHeader":{
0 "alignment":"right"
] },
}, "qtyTableHeader":{
"lastColumn":{ "alignment":"right"
"margin":[ },
0, "taxTableHeader":{
0, "alignment":"right"
40, },
0 "lineTotalTableHeader":{
] "alignment":"right",
}, "margin":[
"productKey":{ 0,
"color":"$primaryColor:#36a498", 0,
"bold":true 40,
}, 0
"yourInvoice":{ ]
"font":"$headerFont", },
"bold":true, "firstColumn":{
"fontSize":14, "margin":[
"color":"$primaryColor:#36a498", 40,
"margin":[ 0,
0, 0,
0, 0
0, ]
8 },
] "lastColumn":{
}, "margin":[
"invoiceLineItemsTable":{ 0,
"margin":[ 0,
0, 40,
26, 0
0, ]
16 },
] "productKey":{
}, "color":"$primaryColor:#36a498",
"clientName":{ "bold":true
"bold":true },
}, "yourInvoice":{
"cost":{ "font":"$headerFont",
"alignment":"right" "bold":true,
}, "fontSize":14,
"quantity":{ "color":"$primaryColor:#36a498",
"alignment":"right" "margin":[
}, 0,
"tax":{ 0,
"alignment":"right" 0,
}, 8
"lineTotal":{ ]
"alignment":"right" },
}, "invoiceLineItemsTable":{
"subtotals":{ "margin":[
"alignment":"right", 0,
"margin":[ 26,
0, 0,
0, 16
40, ]
0 },
] "clientName":{
}, "bold":true
"termsLabel":{ },
"bold":true, "cost":{
"margin":[ "alignment":"right"
0, },
0, "quantity":{
0, "alignment":"right"
4 },
] "tax":{
}, "alignment":"right"
"fullheader":{ },
"font":"$headerFont", "lineTotal":{
"fontSize":"$fontSizeLargest", "alignment":"right"
"bold":true },
}, "subtotals":{
"subheader":{ "alignment":"right",
"font":"$headerFont", "margin":[
"fontSize":"$fontSizeLarger" 0,
}, 0,
"help":{ 40,
"fontSize":"$fontSizeSmaller", 0
"color":"#737373" ]
}, },
"invoiceDocuments":{ "termsLabel":{
"margin":[ "bold":true,
47, "margin":[
0, 0,
47, 0,
0 0,
] 4
}, ]
"invoiceDocument":{ },
"margin":[ "fullheader":{
0, "font":"$headerFont",
10, "fontSize":"$fontSizeLargest",
0, "bold":true
10 },
] "subheader":{
} "font":"$headerFont",
}, "fontSize":"$fontSizeLarger"
"pageMargins":[ },
0, "help":{
80, "fontSize":"$fontSizeSmaller",
0, "color":"#737373"
40 },
] "invoiceDocuments":{
"margin":[
47,
0,
47,
0
]
},
"invoiceDocument":{
"margin":[
0,
10,
0,
10
]
}
},
"pageMargins":[
0,
80,
0,
40
]
} }

View File

@ -1,250 +1,272 @@
{ {
"content": [ "content": [
{ {
"columns": "columns":
[ [
{ {
"image": "$accountLogo", "image": "$accountLogo",
"fit": [120, 80] "fit": [120, 80]
}, },
{ {
"width": 300, "width": 300,
"stack": "$accountDetails", "stack": "$accountDetails",
"margin": [140, 0, 0, 0] "margin": [140, 0, 0, 0]
}, },
{ {
"width": 150, "width": 150,
"stack": "$accountAddress" "stack": "$accountAddress"
} }
] ]
}, },
{ {
"columns": [ "columns": [
{ {
"width": 120, "width": 120,
"stack": [ "stack": [
{"text": "$invoiceIssuedToLabel", "style":"issuedTo"}, {"text": "$invoiceIssuedToLabel", "style":"issuedTo"},
"$clientDetails" "$clientDetails"
], ],
"margin": [0, 20, 0, 0] "margin": [0, 20, 0, 0]
}, },
{ {
"canvas": [{ "type": "rect", "x": 20, "y": 0, "w": 174, "h": "$invoiceDetailsHeight","r":10, "lineWidth": 1,"color":"$primaryColor:#eb792d"}], "canvas": [{ "type": "rect", "x": 20, "y": 0, "w": 174, "h": "$invoiceDetailsHeight","r":10, "lineWidth": 1,"color":"$primaryColor:#eb792d"}],
"width":30, "width":30,
"margin":[200,25,0,0] "margin":[200,25,0,0]
}, },
{ {
"table": { "table": {
"widths": [70, 76], "widths": [70, 76],
"body": "$invoiceDetails" "body": "$invoiceDetails"
}, },
"layout": "noBorders", "layout": "noBorders",
"margin": [200, 34, 0, 0] "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",
"paddingLeft": "$amount:8",
"paddingRight": "$amount:8",
"paddingTop": "$amount:12",
"paddingBottom": "$amount:12"
}
},
{
"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",
"x": 60,
"y": 20,
"w": 198,
"h": 30,
"r": 7,
"lineWidth": 1,
"color": "$secondaryColor:#374e6b"
}
]
},
{
"style": "subtotalsBalance",
"table": {
"widths": ["*", "45%"],
"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]
},
"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
},
"subtotalsBalanceDueLabel": {
"fontSize": "$fontSizeLargest",
"color": "#ffffff",
"bold": true
},
"subtotalsBalanceDue": {
"fontSize": "$fontSizeLargest",
"bold": true,
"color":"#ffffff",
"alignment":"right",
"noWrap":true
},
"invoiceDetails": {
"color": "#ffffff"
},
"tableHeader": {
"color": "#ffffff",
"fontSize": "$fontSizeLargest",
"bold": true
},
"secondTableHeader": {
"color": "$secondaryColor:#374e6b"
}, },
"costTableHeader": { {"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]},
"alignment": "right" {
}, "style": "invoiceLineItemsTable",
"qtyTableHeader": { "table": {
"alignment": "right" "headerRows": 1,
}, "widths": "$invoiceLineItemColumns",
"taxTableHeader": { "body": "$invoiceLineItems"
"alignment": "right" },
}, "layout": {
"lineTotalTableHeader": { "hLineWidth": "$notFirst:1",
"alignment": "right" "vLineWidth": "$notFirst:.5",
}, "hLineColor": "#FFFFFF",
"issuedTo": { "vLineColor": "#FFFFFF",
"margin": [0,2,0,1], "paddingLeft": "$amount:8",
"bold": true, "paddingRight": "$amount:8",
"color": "#374e6b" "paddingTop": "$amount:12",
}, "paddingBottom": "$amount:12"
"clientDetails": { }
"margin": [0,2,0,1] },
}, {
"clientName": { "columns": [
"color": "$primaryColor:#eb792d" "$notesAndTerms",
}, {
"invoiceLineItemsTable": { "stack": [
"margin": [0, 10, 0, 10] {
}, "style": "subtotals",
"invoiceDetailsValue": { "table": {
"alignment": "right" "widths": ["*", "35%"],
}, "body": "$subtotalsWithoutBalance"
"cost": { },
"alignment": "right" "layout": {
}, "hLineWidth": "$none",
"quantity": { "vLineWidth": "$none",
"alignment": "right" "paddingLeft": "$amount:34",
}, "paddingRight": "$amount:8",
"tax": { "paddingTop": "$amount:4",
"alignment": "right" "paddingBottom": "$amount:4"
}, }
"lineTotal": { },
"alignment": "right" {
}, "canvas": [
"subtotals": { {
"alignment": "right" "type": "rect",
}, "x": 60,
"subtotalsBalance": { "y": 20,
"alignment": "right", "w": 198,
"margin": [0, -25, 0, 0] "h": 30,
}, "r": 7,
"termsLabel": { "lineWidth": 1,
"bold": true, "color": "$secondaryColor:#374e6b"
"margin": [0, 0, 0, 4] }
}, ]
"fullheader": { },
"fontSize": "$fontSizeLargest", {
"bold": true "style": "subtotalsBalance",
}, "table": {
"subheader": { "widths": ["*", "45%"],
"fontSize": "$fontSizeLarger" "body": "$subtotalsBalance"
}, },
"help": { "layout": {
"fontSize": "$fontSizeSmaller", "hLineWidth": "$none",
"color": "#737373" "vLineWidth": "$none",
} "paddingLeft": "$amount:34",
}, "paddingRight": "$amount:8",
"pageMargins": [40, 40, 40, 40] "paddingTop": "$amount:4",
"paddingBottom": "$amount:4"
}
}
]
}
]
},
{
"stack": [
{
"image": "$signatureBase64",
"margin": [
200,
10,
0,
0
]
},
{
"text": "$signatureDate",
"margin": [
200,
-40,
0,
0
]
}
]
},
{
"stack": [
"$invoiceDocuments"
],
"style": "invoiceDocuments"
}
],
"footer": {
"columns": [
{
"text": "$invoiceFooter",
"alignment": "left"
}
],
"margin": [40, -20, 40, 0]
},
"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
},
"subtotalsBalanceDueLabel": {
"fontSize": "$fontSizeLargest",
"color": "#ffffff",
"bold": true
},
"subtotalsBalanceDue": {
"fontSize": "$fontSizeLargest",
"bold": true,
"color":"#ffffff",
"alignment":"right",
"noWrap":true
},
"invoiceDetails": {
"color": "#ffffff"
},
"tableHeader": {
"color": "#ffffff",
"fontSize": "$fontSizeLargest",
"bold": true
},
"secondTableHeader": {
"color": "$secondaryColor:#374e6b"
},
"costTableHeader": {
"alignment": "right"
},
"qtyTableHeader": {
"alignment": "right"
},
"taxTableHeader": {
"alignment": "right"
},
"lineTotalTableHeader": {
"alignment": "right"
},
"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"
},
"subtotalsBalance": {
"alignment": "right",
"margin": [0, -25, 0, 0]
},
"termsLabel": {
"bold": true,
"margin": [0, 0, 0, 4]
},
"fullheader": {
"fontSize": "$fontSizeLargest",
"bold": true
},
"subheader": {
"fontSize": "$fontSizeLarger"
},
"help": {
"fontSize": "$fontSizeSmaller",
"color": "#737373"
}
},
"pageMargins": [40, 40, 40, 40]
} }

View File

@ -1,298 +1,320 @@
{ {
"content":[ "content":[
{ {
"columns":[ "columns":[
{ {
"image":"$accountLogo", "image":"$accountLogo",
"fit":[ "fit":[
120, 120,
80 80
] ]
}, },
{ {
"stack":"$accountDetails", "stack":"$accountDetails",
"margin":[ "margin":[
7, 7,
0, 0,
0, 0,
0 0
] ]
}, },
{ {
"stack":"$accountAddress" "stack":"$accountAddress"
} }
] ]
}, },
{ {
"text":"$entityTypeUC", "text":"$entityTypeUC",
"margin":[ "margin":[
8, 8,
30, 30,
8, 8,
5 5
], ],
"style":"entityTypeLabel" "style":"entityTypeLabel"
}, },
{ {
"table":{ "table":{
"headerRows":1, "headerRows":1,
"widths":[ "widths":[
"auto", "auto",
"auto", "auto",
"*" "*"
], ],
"body":[ "body":[
[ [
{ {
"table":{ "table":{
"body":"$invoiceDetails" "body":"$invoiceDetails"
}, },
"margin":[ "margin":[
0, 0,
0, 0,
12, 12,
0 0
], ],
"layout":"noBorders" "layout":"noBorders"
}, },
{ {
"stack":"$clientDetails" "stack":"$clientDetails"
}, },
{ {
"text":"" "text":""
} }
] ]
] ]
}, },
"layout":{ "layout":{
"hLineWidth":"$firstAndLast:.5", "hLineWidth":"$firstAndLast:.5",
"vLineWidth":"$none", "vLineWidth":"$none",
"hLineColor":"#D8D8D8", "hLineColor":"#D8D8D8",
"paddingLeft":"$amount:8", "paddingLeft":"$amount:8",
"paddingRight":"$amount:8", "paddingRight":"$amount:8",
"paddingTop":"$amount:6", "paddingTop":"$amount:6",
"paddingBottom":"$amount:6" "paddingBottom":"$amount:6"
} }
}, },
{ {
"style":"invoiceLineItemsTable", "style":"invoiceLineItemsTable",
"table":{ "table":{
"headerRows":1, "headerRows":1,
"widths":"$invoiceLineItemColumns", "widths":"$invoiceLineItemColumns",
"body":"$invoiceLineItems" "body":"$invoiceLineItems"
}, },
"layout":{ "layout":{
"hLineWidth":"$notFirst:.5", "hLineWidth":"$notFirst:.5",
"vLineWidth":"$none", "vLineWidth":"$none",
"hLineColor":"#D8D8D8", "hLineColor":"#D8D8D8",
"paddingLeft":"$amount:8", "paddingLeft":"$amount:8",
"paddingRight":"$amount:8", "paddingRight":"$amount:8",
"paddingTop":"$amount:14", "paddingTop":"$amount:14",
"paddingBottom":"$amount:14" "paddingBottom":"$amount:14"
} }
}, },
{ {
"columns":[ "columns":[
"$notesAndTerms", "$notesAndTerms",
{ {
"table":{ "table":{
"widths":[ "widths":[
"*", "*",
"40%" "40%"
], ],
"body":"$subtotals" "body":"$subtotals"
}, },
"layout":{ "layout":{
"hLineWidth":"$none", "hLineWidth":"$none",
"vLineWidth":"$none", "vLineWidth":"$none",
"paddingLeft":"$amount:34", "paddingLeft":"$amount:34",
"paddingRight":"$amount:8", "paddingRight":"$amount:8",
"paddingTop":"$amount:4", "paddingTop":"$amount:4",
"paddingBottom":"$amount:4" "paddingBottom":"$amount:4"
} }
} }
] ]
}, },
{ {
"stack":[ "stack": [
"$invoiceDocuments" {
], "image": "$signatureBase64",
"style":"invoiceDocuments" "margin": [
} 200,
], 10,
"defaultStyle":{ 0,
"font":"$bodyFont", 0
"fontSize":"$fontSize", ]
"margin":[ },
8, {
4, "text": "$signatureDate",
8, "margin": [
4 200,
] -40,
}, 0,
"footer":{ 0
"columns":[ ]
{ }
"text":"$invoiceFooter", ]
"alignment":"left" },
} {
], "stack":[
"margin":[ "$invoiceDocuments"
40, ],
-20, "style":"invoiceDocuments"
40, }
0 ],
] "defaultStyle":{
}, "font":"$bodyFont",
"styles":{ "fontSize":"$fontSize",
"entityTypeLabel":{ "margin":[
"font":"$headerFont", 8,
"fontSize":"$fontSizeLargest", 4,
"color":"$primaryColor:#37a3c6" 8,
}, 4
"primaryColor":{ ]
"color":"$primaryColor:#37a3c6" },
}, "footer":{
"accountName":{ "columns":[
"color":"$primaryColor:#37a3c6", {
"bold":true "text":"$invoiceFooter",
}, "alignment":"left"
"invoiceDetails":{ }
"margin":[ ],
0, "margin":[
0, 40,
8, -20,
0 40,
] 0
}, ]
"accountDetails":{ },
"margin":[ "styles":{
0, "entityTypeLabel":{
2, "font":"$headerFont",
0, "fontSize":"$fontSizeLargest",
2 "color":"$primaryColor:#37a3c6"
] },
}, "primaryColor":{
"clientDetails":{ "color":"$primaryColor:#37a3c6"
"margin":[ },
0, "accountName":{
2, "color":"$primaryColor:#37a3c6",
0, "bold":true
2 },
] "invoiceDetails":{
}, "margin":[
"notesAndTerms":{ 0,
"margin":[ 0,
0, 8,
2, 0
0, ]
2 },
] "accountDetails":{
}, "margin":[
"accountAddress":{ 0,
"margin":[ 2,
0, 0,
2, 2
0, ]
2 },
] "clientDetails":{
}, "margin":[
"odd":{ 0,
"fillColor":"#fbfbfb" 2,
}, 0,
"productKey":{ 2
"color":"$primaryColor:#37a3c6", ]
"bold":true },
}, "notesAndTerms":{
"subtotalsBalanceDueLabel":{ "margin":[
"fontSize":"$fontSizeLarger" 0,
}, 2,
"subtotalsBalanceDue":{ 0,
"fontSize":"$fontSizeLarger", 2
"color":"$primaryColor:#37a3c6" ]
}, },
"invoiceNumber":{ "accountAddress":{
"bold":true "margin":[
}, 0,
"tableHeader":{ 2,
"bold":true, 0,
"fontSize":"$fontSizeLarger" 2
}, ]
"costTableHeader":{ },
"alignment":"right" "odd":{
}, "fillColor":"#fbfbfb"
"qtyTableHeader":{ },
"alignment":"right" "productKey":{
}, "color":"$primaryColor:#37a3c6",
"taxTableHeader":{ "bold":true
"alignment":"right" },
}, "subtotalsBalanceDueLabel":{
"lineTotalTableHeader":{ "fontSize":"$fontSizeLarger"
"alignment":"right" },
}, "subtotalsBalanceDue":{
"invoiceLineItemsTable":{ "fontSize":"$fontSizeLarger",
"margin":[ "color":"$primaryColor:#37a3c6"
0, },
16, "invoiceNumber":{
0, "bold":true
16 },
] "tableHeader":{
}, "bold":true,
"clientName":{ "fontSize":"$fontSizeLarger"
"bold":true },
}, "costTableHeader":{
"cost":{ "alignment":"right"
"alignment":"right" },
}, "qtyTableHeader":{
"quantity":{ "alignment":"right"
"alignment":"right" },
}, "taxTableHeader":{
"tax":{ "alignment":"right"
"alignment":"right" },
}, "lineTotalTableHeader":{
"lineTotal":{ "alignment":"right"
"alignment":"right" },
}, "invoiceLineItemsTable":{
"subtotals":{ "margin":[
"alignment":"right" 0,
}, 16,
"termsLabel":{ 0,
"bold":true 16
}, ]
"fullheader":{ },
"font":"$headerFont", "clientName":{
"fontSize":"$fontSizeLargest", "bold":true
"bold":true },
}, "cost":{
"subheader":{ "alignment":"right"
"font":"$headerFont", },
"fontSize":"$fontSizeLarger" "quantity":{
}, "alignment":"right"
"help":{ },
"fontSize":"$fontSizeSmaller", "tax":{
"color":"#737373" "alignment":"right"
}, },
"invoiceDocuments":{ "lineTotal":{
"margin":[ "alignment":"right"
7, },
0, "subtotals":{
7, "alignment":"right"
0 },
] "termsLabel":{
}, "bold":true
"invoiceDocument":{ },
"margin":[ "fullheader":{
0, "font":"$headerFont",
10, "fontSize":"$fontSizeLargest",
0, "bold":true
10 },
] "subheader":{
} "font":"$headerFont",
}, "fontSize":"$fontSizeLarger"
"pageMargins":[ },
40, "help":{
40, "fontSize":"$fontSizeSmaller",
40, "color":"#737373"
60 },
] "invoiceDocuments":{
"margin":[
7,
0,
7,
0
]
},
"invoiceDocument":{
"margin":[
0,
10,
0,
10
]
}
},
"pageMargins":[
40,
40,
40,
60
]
} }

View File

@ -1,221 +1,243 @@
{ {
"content": [ "content": [
{
"columns": [
{
"stack": "$clientDetails"
},
{
"stack": "$accountDetails"
},
{
"stack": "$accountAddress"
},
{
"image": "$accountLogo",
"fit": [120, 80],
"alignment": "right"
}
],
"margin": [0, 0, 0, 20]
},
{ {
"columns": [ "columns": [
{"text": {
[ "stack": "$clientDetails"
{"text": "$entityTypeUC", "style": "header1"}, },
{"text": " #", "style": "header2"}, {
{"text": "$invoiceNumber", "style":"header2"} "stack": "$accountDetails"
], },
"width": "*" {
}, "stack": "$accountAddress"
{ },
"width":200, {
"table": { "image": "$accountLogo",
"body": "$invoiceDetails" "fit": [120, 80],
}, "alignment": "right"
"layout": "noBorders", }
"margin": [16, 4, 0, 0]
}
], ],
"margin": [0, 0, 0, 20] "margin": [0, 0, 0, 20]
},
{
"columns": [
{"text":
[
{"text": "$entityTypeUC", "style": "header1"},
{"text": " #", "style": "header2"},
{"text": "$invoiceNumber", "style":"header2"}
],
"width": "*"
},
{
"width":200,
"table": {
"body": "$invoiceDetails"
},
"layout": "noBorders",
"margin": [16, 4, 0, 0]
}
],
"margin": [0, 0, 0, 20]
}, },
{"canvas": [{ "type": "line", "x1": 0, "y1": 5, "x2": 515, "y2": 5, "lineWidth": 3,"lineColor":"$primaryColor:#AE1E54"}]}, {"canvas": [{ "type": "line", "x1": 0, "y1": 5, "x2": 515, "y2": 5, "lineWidth": 3,"lineColor":"$primaryColor:#AE1E54"}]},
{ {
"style": "invoiceLineItemsTable", "style": "invoiceLineItemsTable",
"table": { "table": {
"headerRows": 1, "headerRows": 1,
"widths": "$invoiceLineItemColumns", "widths": "$invoiceLineItemColumns",
"body": "$invoiceLineItems" "body": "$invoiceLineItems"
}, },
"layout": { "layout": {
"hLineWidth": "$none", "hLineWidth": "$none",
"vLineWidth": "$none", "vLineWidth": "$none",
"hLineColor": "$primaryColor:#E8E8E8", "hLineColor": "$primaryColor:#E8E8E8",
"paddingLeft": "$amount:8", "paddingLeft": "$amount:8",
"paddingRight": "$amount:8", "paddingRight": "$amount:8",
"paddingTop": "$amount:8", "paddingTop": "$amount:8",
"paddingBottom": "$amount:8" "paddingBottom": "$amount:8"
} }
}, },
{ {
"columns": [ "columns": [
"$notesAndTerms", "$notesAndTerms",
{ {
"style": "subtotals", "style": "subtotals",
"table": { "table": {
"widths": ["*", "40%"], "widths": ["*", "40%"],
"body": "$subtotalsWithoutBalance" "body": "$subtotalsWithoutBalance"
}, },
"layout": { "layout": {
"hLineWidth": "$none", "hLineWidth": "$none",
"vLineWidth": "$none", "vLineWidth": "$none",
"paddingLeft": "$amount:34", "paddingLeft": "$amount:34",
"paddingRight": "$amount:8", "paddingRight": "$amount:8",
"paddingTop": "$amount:4", "paddingTop": "$amount:4",
"paddingBottom": "$amount:4" "paddingBottom": "$amount:4"
} }
} }
] ]
}, },
{ {
"canvas": [{ "type": "line", "x1": 0, "y1": 20, "x2": 515, "y2": 20, "lineWidth": 3,"lineColor":"$primaryColor:#AE1E54"}], "canvas": [{ "type": "line", "x1": 0, "y1": 20, "x2": 515, "y2": 20, "lineWidth": 3,"lineColor":"$primaryColor:#AE1E54"}],
"margin": [0, -8, 0, -8] "margin": [0, -8, 0, -8]
}, },
{ {
"text": "$balanceDueLabel", "text": "$balanceDueLabel",
"style": "subtotalsBalanceDueLabel" "style": "subtotalsBalanceDueLabel"
}, },
{ {
"text": "$balanceDue", "text": "$balanceDue",
"style": "subtotalsBalanceDue" "style": "subtotalsBalanceDue"
}, },
{ {
"stack": [ "stack": [
"$invoiceDocuments" {
], "image": "$signatureBase64",
"style": "invoiceDocuments" "margin": [
} 200,
], 10,
"footer": { 0,
"columns": [ 0
{ ]
"text": "$invoiceFooter", },
"alignment": "left" {
} "text": "$signatureDate",
], "margin": [
"margin": [40, -20, 40, 0] 200,
}, -40,
"defaultStyle": { 0,
"fontSize": "$fontSize", 0
"margin": [8, 4, 8, 4] ]
}, }
"styles": { ]
"primaryColor":{ },
"color": "$primaryColor:#AE1E54" {
}, "stack": [
"accountName": { "$invoiceDocuments"
"margin": [4, 2, 4, 2], ],
"color": "$primaryColor:#AE1E54", "style": "invoiceDocuments"
"bold": true }
}, ],
"accountDetails": { "footer": {
"margin": [4, 2, 4, 2] "columns": [
}, {
"accountAddress": { "text": "$invoiceFooter",
"margin": [4, 2, 4, 2] "alignment": "left"
}, }
"odd": { ],
"fillColor":"#F4F4F4" "margin": [40, -20, 40, 0]
}, },
"productKey": { "defaultStyle": {
"bold": true "fontSize": "$fontSize",
}, "margin": [8, 4, 8, 4]
"subtotalsBalanceDueLabel": { },
"fontSize": "$fontSizeLargest", "styles": {
"margin": [320,20,0,0] "primaryColor":{
}, "color": "$primaryColor:#AE1E54"
"subtotalsBalanceDue": { },
"fontSize": "$fontSizeLargest", "accountName": {
"color": "$primaryColor:#AE1E54", "margin": [4, 2, 4, 2],
"bold": true, "color": "$primaryColor:#AE1E54",
"margin":[0,-10,10,0], "bold": true
"alignment": "right" },
}, "accountDetails": {
"invoiceDetailBalanceDue": { "margin": [4, 2, 4, 2]
"bold": true, },
"color": "$primaryColor:#AE1E54" "accountAddress": {
}, "margin": [4, 2, 4, 2]
"invoiceDetailBalanceDueLabel": { },
"bold": true "odd": {
}, "fillColor":"#F4F4F4"
"tableHeader": { },
"bold": true, "productKey": {
"color": "$primaryColor:#AE1E54", "bold": true
"fontSize": "$fontSizeLargest" },
}, "subtotalsBalanceDueLabel": {
"costTableHeader": { "fontSize": "$fontSizeLargest",
"alignment": "right" "margin": [320,20,0,0]
}, },
"qtyTableHeader": { "subtotalsBalanceDue": {
"alignment": "right" "fontSize": "$fontSizeLargest",
}, "color": "$primaryColor:#AE1E54",
"taxTableHeader": { "bold": true,
"alignment": "right" "margin":[0,-10,10,0],
}, "alignment": "right"
"lineTotalTableHeader": { },
"alignment": "right" "invoiceDetailBalanceDue": {
}, "bold": true,
"clientName": { "color": "$primaryColor:#AE1E54"
"bold": true },
}, "invoiceDetailBalanceDueLabel": {
"clientDetails": { "bold": true
"margin": [0,2,0,1] },
}, "tableHeader": {
"header1": { "bold": true,
"bold": true, "color": "$primaryColor:#AE1E54",
"margin": [0, 30, 0, 16], "fontSize": "$fontSizeLargest"
"fontSize": 42 },
}, "costTableHeader": {
"header2": { "alignment": "right"
"margin": [0, 30, 0, 16], },
"fontSize": 42, "qtyTableHeader": {
"italics": true, "alignment": "right"
"color": "$primaryColor:#AE1E54" },
}, "taxTableHeader": {
"invoiceLineItemsTable": { "alignment": "right"
"margin": [0, 4, 0, 16] },
}, "lineTotalTableHeader": {
"cost": { "alignment": "right"
"alignment": "right" },
}, "clientName": {
"quantity": { "bold": true
"alignment": "right" },
}, "clientDetails": {
"tax": { "margin": [0,2,0,1]
"alignment": "right" },
}, "header1": {
"lineTotal": { "bold": true,
"alignment": "right" "margin": [0, 30, 0, 16],
}, "fontSize": 42
"subtotals": { },
"alignment": "right" "header2": {
}, "margin": [0, 30, 0, 16],
"termsLabel": { "fontSize": 42,
"bold": true, "italics": true,
"margin": [0, 0, 0, 4] "color": "$primaryColor:#AE1E54"
}, },
"fullheader": { "invoiceLineItemsTable": {
"fontSize": "$fontSizeLargest", "margin": [0, 4, 0, 16]
"bold": true },
}, "cost": {
"subheader": { "alignment": "right"
"fontSize": "$fontSizeLarger" },
}, "quantity": {
"help": { "alignment": "right"
"fontSize": "$fontSizeSmaller", },
"color": "#737373" "tax": {
} "alignment": "right"
}, },
"pageMargins": [40, 40, 40, 40] "lineTotal": {
"alignment": "right"
},
"subtotals": {
"alignment": "right"
},
"termsLabel": {
"bold": true,
"margin": [0, 0, 0, 4]
},
"fullheader": {
"fontSize": "$fontSizeLargest",
"bold": true
},
"subheader": {
"fontSize": "$fontSizeLarger"
},
"help": {
"fontSize": "$fontSizeSmaller",
"color": "#737373"
}
},
"pageMargins": [40, 40, 40, 40]
} }

View File

@ -1,216 +1,238 @@
{ {
"content": [ "content": [
{ {
"image": "$accountLogo", "image": "$accountLogo",
"fit": [120, 80], "fit": [120, 80],
"alignment": "center", "alignment": "center",
"margin": [0, 0, 0, 30] "margin": [0, 0, 0, 30]
}, },
{"canvas": [{ "type": "line", "x1": 0, "y1": 5, "x2": 515, "y2": 5, "lineWidth": 2}]}, {"canvas": [{ "type": "line", "x1": 0, "y1": 5, "x2": 515, "y2": 5, "lineWidth": 2}]},
{"canvas": [{ "type": "line", "x1": 0, "y1": 3, "x2": 515, "y2": 3, "lineWidth": 1}]}, {"canvas": [{ "type": "line", "x1": 0, "y1": 3, "x2": 515, "y2": 3, "lineWidth": 1}]},
{ {
"columns": [ "columns": [
{ {
"width": 120, "width": 120,
"stack": [ "stack": [
{"text": "$invoiceToLabel", "style": "header", "margin": [0, 0, 0, 6]}, {"text": "$invoiceToLabel", "style": "header", "margin": [0, 0, 0, 6]},
"$clientDetails" "$clientDetails"
] ]
}, },
{ {
"width": 10, "width": 10,
"canvas": [{ "type": "line", "x1": -2, "y1": 18, "x2": -2, "y2": 80, "lineWidth": 1,"dash": { "length": 2 }}] "canvas": [{ "type": "line", "x1": -2, "y1": 18, "x2": -2, "y2": 80, "lineWidth": 1,"dash": { "length": 2 }}]
}, },
{ {
"width": 120, "width": 120,
"stack": "$accountDetails", "stack": "$accountDetails",
"margin": [0, 20, 0, 0] "margin": [0, 20, 0, 0]
}, },
{ {
"width": 110, "width": 110,
"stack": "$accountAddress", "stack": "$accountAddress",
"margin": [0, 20, 0, 0] "margin": [0, 20, 0, 0]
}, },
{ {
"stack": [ "stack": [
{"text": "$detailsLabel", "style": "header", "margin": [0, 0, 0, 6]}, {"text": "$detailsLabel", "style": "header", "margin": [0, 0, 0, 6]},
{ {
"width":180, "width":180,
"table": { "table": {
"body": "$invoiceDetails" "body": "$invoiceDetails"
}, },
"layout": "noBorders" "layout": "noBorders"
} }
] ]
}], }],
"margin": [0, 20, 0, 0] "margin": [0, 20, 0, 0]
}, },
{ {
"style": "invoiceLineItemsTable", "style": "invoiceLineItemsTable",
"table": { "table": {
"headerRows": 1, "headerRows": 1,
"widths": "$invoiceLineItemColumns", "widths": "$invoiceLineItemColumns",
"body": "$invoiceLineItems" "body": "$invoiceLineItems"
}, },
"layout": { "layout": {
"hLineWidth": "$notFirst:.5", "hLineWidth": "$notFirst:.5",
"vLineWidth": "$none", "vLineWidth": "$none",
"paddingLeft": "$amount:8", "paddingLeft": "$amount:8",
"paddingRight": "$amount:8", "paddingRight": "$amount:8",
"paddingTop": "$amount:12", "paddingTop": "$amount:12",
"paddingBottom": "$amount:12" "paddingBottom": "$amount:12"
} }
}, },
{ {
"columns": [ "columns": [
"$notesAndTerms", "$notesAndTerms",
{ {
"style": "subtotals", "style": "subtotals",
"table": { "table": {
"widths": ["*", "40%"], "widths": ["*", "40%"],
"body": "$subtotalsWithoutBalance" "body": "$subtotalsWithoutBalance"
}, },
"layout": { "layout": {
"hLineWidth": "$none", "hLineWidth": "$none",
"vLineWidth": "$none", "vLineWidth": "$none",
"paddingLeft": "$amount:34", "paddingLeft": "$amount:34",
"paddingRight": "$amount:8", "paddingRight": "$amount:8",
"paddingTop": "$amount:4", "paddingTop": "$amount:4",
"paddingBottom": "$amount:4" "paddingBottom": "$amount:4"
} }
} }
] ]
}, },
{ {
"canvas": [{ "type": "line", "x1": 270, "y1": 20, "x2": 515, "y2": 20, "lineWidth": 1,"dash": { "length": 2 }}] "canvas": [{ "type": "line", "x1": 270, "y1": 20, "x2": 515, "y2": 20, "lineWidth": 1,"dash": { "length": 2 }}]
}, },
{ {
"text": "$balanceDueLabel", "text": "$balanceDueLabel",
"style": "subtotalsBalanceDueLabel" "style": "subtotalsBalanceDueLabel"
}, },
{ {
"text": "$balanceDue", "text": "$balanceDue",
"style": "subtotalsBalanceDue" "style": "subtotalsBalanceDue"
}, },
{ {
"canvas": [{ "type": "line", "x1": 270, "y1": 20, "x2": 515, "y2": 20, "lineWidth": 1,"dash": { "length": 2 }}] "canvas": [{ "type": "line", "x1": 270, "y1": 20, "x2": 515, "y2": 20, "lineWidth": 1,"dash": { "length": 2 }}]
}, },
{ {
"stack": [ "stack": [
"$invoiceDocuments" {
], "image": "$signatureBase64",
"style": "invoiceDocuments" "margin": [
}], 200,
"footer": [ 10,
{ 0,
"columns": [ 0
{ ]
"text": "$invoiceFooter", },
"alignment": "left" {
} "text": "$signatureDate",
], "margin": [
"margin": [40, -20, 40, 0] 200,
}, -40,
{"canvas": [{ "type": "line", "x1": 35, "y1": 5, "x2": 555, "y2": 5, "lineWidth": 2,"margin": [30,0,0,0]}]}, 0,
{"canvas": [{ "type": "line", "x1": 35, "y1": 3, "x2": 555, "y2": 3, "lineWidth": 1,"margin": [30,0,0,0]}]} 0
], ]
"defaultStyle": { }
"fontSize": "$fontSize", ]
"margin": [8, 4, 8, 4] },
}, {
"styles": { "stack": [
"accountDetails": { "$invoiceDocuments"
"margin": [0, 2, 0, 1] ],
}, "style": "invoiceDocuments"
"clientDetails": { }],
"margin": [0, 2, 0, 1] "footer": [
}, {
"accountAddress": { "columns": [
"margin": [0, 2, 0, 1] {
}, "text": "$invoiceFooter",
"clientName": { "alignment": "left"
"bold": true }
}, ],
"accountName": { "margin": [40, -20, 40, 0]
"bold": true },
}, {"canvas": [{ "type": "line", "x1": 35, "y1": 5, "x2": 555, "y2": 5, "lineWidth": 2,"margin": [30,0,0,0]}]},
"odd": { {"canvas": [{ "type": "line", "x1": 35, "y1": 3, "x2": 555, "y2": 3, "lineWidth": 1,"margin": [30,0,0,0]}]}
}, ],
"subtotalsBalanceDueLabel": { "defaultStyle": {
"fontSize": "$fontSizeLargest", "fontSize": "$fontSize",
"color": "$primaryColor:#5a7b61", "margin": [8, 4, 8, 4]
"margin": [320,20,0,0] },
}, "styles": {
"subtotalsBalanceDue": { "accountDetails": {
"fontSize": "$fontSizeLargest", "margin": [0, 2, 0, 1]
"color": "$primaryColor:#5a7b61", },
"style": true, "clientDetails": {
"margin":[0,-14,8,0], "margin": [0, 2, 0, 1]
"alignment":"right" },
}, "accountAddress": {
"invoiceDetailBalanceDue": { "margin": [0, 2, 0, 1]
"color": "$primaryColor:#5a7b61", },
"bold": true "clientName": {
}, "bold": true
"fullheader": { },
"font": "$headerFont", "accountName": {
"fontSize": "$fontSizeLargest", "bold": true
"bold": true },
}, "odd": {
"header": { },
"fontSize": 14, "subtotalsBalanceDueLabel": {
"bold": true "fontSize": "$fontSizeLargest",
}, "color": "$primaryColor:#5a7b61",
"tableHeader": { "margin": [320,20,0,0]
"bold": true, },
"color": "$primaryColor:#5a7b61", "subtotalsBalanceDue": {
"fontSize": "$fontSizeLargest" "fontSize": "$fontSizeLargest",
}, "color": "$primaryColor:#5a7b61",
"costTableHeader": { "style": true,
"alignment": "right" "margin":[0,-14,8,0],
}, "alignment":"right"
"qtyTableHeader": { },
"alignment": "right" "invoiceDetailBalanceDue": {
}, "color": "$primaryColor:#5a7b61",
"taxTableHeader": { "bold": true
"alignment": "right" },
}, "fullheader": {
"lineTotalTableHeader": { "font": "$headerFont",
"alignment": "right" "fontSize": "$fontSizeLargest",
}, "bold": true
"invoiceLineItemsTable": { },
"margin": [0, 40, 0, 16] "header": {
}, "fontSize": 14,
"cost": { "bold": true
"alignment": "right" },
}, "tableHeader": {
"quantity": { "bold": true,
"alignment": "right" "color": "$primaryColor:#5a7b61",
}, "fontSize": "$fontSizeLargest"
"tax": { },
"alignment": "right" "costTableHeader": {
}, "alignment": "right"
"lineTotal": { },
"alignment": "right" "qtyTableHeader": {
}, "alignment": "right"
"subtotals": { },
"alignment": "right" "taxTableHeader": {
}, "alignment": "right"
"termsLabel": { },
"bold": true, "lineTotalTableHeader": {
"margin": [0, 0, 0, 4] "alignment": "right"
}, },
"header": { "invoiceLineItemsTable": {
"fontSize": "$fontSizeLargest", "margin": [0, 40, 0, 16]
"bold": true },
}, "cost": {
"subheader": { "alignment": "right"
"fontSize": "$fontSizeLarger" },
}, "quantity": {
"help": { "alignment": "right"
"fontSize": "$fontSizeSmaller", },
"color": "#737373" "tax": {
} "alignment": "right"
}, },
"pageMargins": [40, 40, 40, 40] "lineTotal": {
"alignment": "right"
},
"subtotals": {
"alignment": "right"
},
"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]
} }

View File

@ -1,218 +1,240 @@
{ {
"content": [ "content": [
{ {
"columns": [ "columns": [
{ {
"width":10, "width":10,
"canvas": [{ "type": "line", "x1": 0, "y1": 0, "x2": 0, "y2": 75, "lineWidth": 0.5}] "canvas": [{ "type": "line", "x1": 0, "y1": 0, "x2": 0, "y2": 75, "lineWidth": 0.5}]
}, },
{ {
"width":120, "width":120,
"stack": [ "stack": [
{"text": "$fromLabelUC", "style": "fromLabel"}, {"text": "$fromLabelUC", "style": "fromLabel"},
"$accountDetails" "$accountDetails"
] ]
}, },
{ {
"width":120, "width":120,
"stack": [ "stack": [
{"text": " "}, {"text": " "},
"$accountAddress" "$accountAddress"
], ],
"margin": [10, 0, 0, 16] "margin": [10, 0, 0, 16]
}, },
{ {
"width":10, "width":10,
"canvas": [{ "type": "line", "x1": 0, "y1": 0, "x2": 0, "y2": 75, "lineWidth": 0.5}] "canvas": [{ "type": "line", "x1": 0, "y1": 0, "x2": 0, "y2": 75, "lineWidth": 0.5}]
}, },
{ {
"stack": [ "stack": [
{"text": "$toLabelUC", "style": "toLabel"}, {"text": "$toLabelUC", "style": "toLabel"},
"$clientDetails" "$clientDetails"
] ]
}, },
[ [
{ {
"image": "$accountLogo", "image": "$accountLogo",
"fit": [120, 80] "fit": [120, 80]
} }
] ]
] ]
}, },
{
"text": "$entityTypeUC",
"margin": [0, 4, 0, 8],
"bold": "true",
"fontSize": 42
},
{ {
"columnGap": 16, "text": "$entityTypeUC",
"margin": [0, 4, 0, 8],
"bold": "true",
"fontSize": 42
},
{
"columnGap": 16,
"columns": [ "columns": [
{ {
"width":"auto", "width":"auto",
"text": ["$invoiceNoLabel"," ","$invoiceNumberValue"], "text": ["$invoiceNoLabel"," ","$invoiceNumberValue"],
"bold": true, "bold": true,
"color":"$primaryColor:#bc9f2b", "color":"$primaryColor:#bc9f2b",
"fontSize":10 "fontSize":10
}, },
{ {
"width":"auto", "width":"auto",
"text": ["$invoiceDateLabel"," ","$invoiceDateValue"], "text": ["$invoiceDateLabel"," ","$invoiceDateValue"],
"fontSize":10 "fontSize":10
}, },
{ {
"width":"auto", "width":"auto",
"text": ["$dueDateLabel?"," ","$dueDateValue"], "text": ["$dueDateLabel?"," ","$dueDateValue"],
"fontSize":10 "fontSize":10
}, },
{ {
"width":"*", "width":"*",
"text": ["$balanceDueLabel"," ",{"text":"$balanceDue", "bold":true, "color":"$primaryColor:#bc9f2b"}], "text": ["$balanceDueLabel"," ",{"text":"$balanceDue", "bold":true, "color":"$primaryColor:#bc9f2b"}],
"fontSize":10 "fontSize":10
} }
] ]
}, },
{ {
"margin": [0, 26, 0, 0], "margin": [0, 26, 0, 0],
"style": "invoiceLineItemsTable", "style": "invoiceLineItemsTable",
"table": { "table": {
"headerRows": 1, "headerRows": 1,
"widths": "$invoiceLineItemColumns", "widths": "$invoiceLineItemColumns",
"body": "$invoiceLineItems" "body": "$invoiceLineItems"
}, },
"layout": { "layout": {
"hLineWidth": "$none", "hLineWidth": "$none",
"vLineWidth": "$amount:.5", "vLineWidth": "$amount:.5",
"paddingLeft": "$amount:8", "paddingLeft": "$amount:8",
"paddingRight": "$amount:8", "paddingRight": "$amount:8",
"paddingTop": "$amount:8", "paddingTop": "$amount:8",
"paddingBottom": "$amount:8" "paddingBottom": "$amount:8"
} }
}, },
{ {
"columns": [ "columns": [
{ {
"stack": "$notesAndTerms", "stack": "$notesAndTerms",
"width": "*", "width": "*",
"margin": [0, 12, 0, 0] "margin": [0, 12, 0, 0]
}, },
{ {
"width": 200, "width": 200,
"style": "subtotals", "style": "subtotals",
"table": { "table": {
"widths": ["*", "36%"], "widths": ["*", "36%"],
"body": "$subtotals" "body": "$subtotals"
}, },
"layout": { "layout": {
"hLineWidth": "$none", "hLineWidth": "$none",
"vLineWidth": "$notFirst:.5", "vLineWidth": "$notFirst:.5",
"paddingLeft": "$amount:8", "paddingLeft": "$amount:8",
"paddingRight": "$amount:8", "paddingRight": "$amount:8",
"paddingTop": "$amount:12", "paddingTop": "$amount:12",
"paddingBottom": "$amount:4" "paddingBottom": "$amount:4"
} }
} }
] ]
}, },
{ {
"stack": [ "stack": [
"$invoiceDocuments" {
], "image": "$signatureBase64",
"style": "invoiceDocuments" "margin": [
} 200,
], 10,
"footer": { 0,
"columns": [ 0
{ ]
"text": "$invoiceFooter", },
"alignment": "left" {
} "text": "$signatureDate",
], "margin": [
"margin": [40, -20, 40, 0] 200,
}, -40,
"defaultStyle": { 0,
"fontSize": "$fontSize", 0
"margin": [8, 4, 8, 4] ]
}, }
"styles": { ]
"accountName": { },
"bold": true {
}, "stack": [
"clientName": { "$invoiceDocuments"
"bold": true ],
}, "style": "invoiceDocuments"
"subtotalsBalanceDueLabel": { }
"fontSize": "$fontSizeLargest", ],
"bold": true "footer": {
}, "columns": [
"subtotalsBalanceDue": { {
"fontSize": "$fontSizeLargest", "text": "$invoiceFooter",
"color": "$primaryColor:#bc9f2b", "alignment": "left"
"bold": true }
}, ],
"tableHeader": { "margin": [40, -20, 40, 0]
"bold": true, },
"fontSize": "$fontSizeLargest" "defaultStyle": {
}, "fontSize": "$fontSize",
"costTableHeader": { "margin": [8, 4, 8, 4]
"alignment": "right" },
}, "styles": {
"qtyTableHeader": { "accountName": {
"alignment": "right" "bold": true
}, },
"taxTableHeader": { "clientName": {
"alignment": "right" "bold": true
}, },
"lineTotalTableHeader": { "subtotalsBalanceDueLabel": {
"alignment": "right" "fontSize": "$fontSizeLargest",
}, "bold": true
"fromLabel": { },
"color": "$primaryColor:#bc9f2b", "subtotalsBalanceDue": {
"bold": true "fontSize": "$fontSizeLargest",
}, "color": "$primaryColor:#bc9f2b",
"toLabel": { "bold": true
"color": "$primaryColor:#bc9f2b", },
"bold": true "tableHeader": {
}, "bold": true,
"accountDetails": { "fontSize": "$fontSizeLargest"
"margin": [0, 2, 0, 1] },
}, "costTableHeader": {
"accountAddress": { "alignment": "right"
"margin": [0, 2, 0, 1] },
}, "qtyTableHeader": {
"clientDetails": { "alignment": "right"
"margin": [0, 2, 0, 1] },
}, "taxTableHeader": {
"cost": { "alignment": "right"
"alignment": "right" },
}, "lineTotalTableHeader": {
"quantity": { "alignment": "right"
"alignment": "right" },
}, "fromLabel": {
"tax": { "color": "$primaryColor:#bc9f2b",
"alignment": "right" "bold": true
}, },
"lineTotal": { "toLabel": {
"alignment": "right" "color": "$primaryColor:#bc9f2b",
}, "bold": true
"subtotals": { },
"alignment": "right" "accountDetails": {
}, "margin": [0, 2, 0, 1]
"termsLabel": { },
"bold": true, "accountAddress": {
"margin": [0, 16, 0, 4] "margin": [0, 2, 0, 1]
}, },
"fullheader": { "clientDetails": {
"fontSize": "$fontSizeLargest", "margin": [0, 2, 0, 1]
"bold": true },
}, "cost": {
"subheader": { "alignment": "right"
"fontSize": "$fontSizeLarger" },
}, "quantity": {
"help": { "alignment": "right"
"fontSize": "$fontSizeSmaller", },
"color": "#737373" "tax": {
} "alignment": "right"
}, },
"pageMargins": [40, 40, 40, 40] "lineTotal": {
"alignment": "right"
},
"subtotals": {
"alignment": "right"
},
"termsLabel": {
"bold": true,
"margin": [0, 16, 0, 4]
},
"fullheader": {
"fontSize": "$fontSizeLargest",
"bold": true
},
"subheader": {
"fontSize": "$fontSizeLarger"
},
"help": {
"fontSize": "$fontSizeSmaller",
"color": "#737373"
}
},
"pageMargins": [40, 40, 40, 40]
} }

View File

@ -1,263 +1,285 @@
{ {
"content": [ "content": [
{ {
"columns": [ "columns": [
{ {
"image": "$accountLogo", "image": "$accountLogo",
"fit": [120, 80], "fit": [120, 80],
"margin": [0, 60, 0, 30] "margin": [0, 60, 0, 30]
}, },
{ {
"stack": "$clientDetails", "stack": "$clientDetails",
"margin": [0, 60, 0, 0] "margin": [0, 60, 0, 0]
} }
] ]
}, },
{ {
"style": "invoiceLineItemsTable", "style": "invoiceLineItemsTable",
"table": { "table": {
"headerRows": 1, "headerRows": 1,
"widths": "$invoiceLineItemColumns", "widths": "$invoiceLineItemColumns",
"body": "$invoiceLineItems" "body": "$invoiceLineItems"
}, },
"layout": { "layout": {
"hLineWidth": "$notFirst:.5", "hLineWidth": "$notFirst:.5",
"vLineWidth": "$notFirstAndLastColumn:.5", "vLineWidth": "$notFirstAndLastColumn:.5",
"hLineColor": "#888888", "hLineColor": "#888888",
"vLineColor": "#FFFFFF", "vLineColor": "#FFFFFF",
"paddingLeft": "$amount:8", "paddingLeft": "$amount:8",
"paddingRight": "$amount:8", "paddingRight": "$amount:8",
"paddingTop": "$amount:8", "paddingTop": "$amount:8",
"paddingBottom": "$amount:8" "paddingBottom": "$amount:8"
} }
}, },
{ {
"columns": [ "columns": [
"$notesAndTerms", "$notesAndTerms",
{ {
"table": { "table": {
"widths": ["*", "40%"], "widths": ["*", "40%"],
"body": "$subtotalsWithoutBalance" "body": "$subtotalsWithoutBalance"
}, },
"layout": { "layout": {
"hLineWidth": "$none", "hLineWidth": "$none",
"vLineWidth": "$none", "vLineWidth": "$none",
"paddingLeft": "$amount:34", "paddingLeft": "$amount:34",
"paddingRight": "$amount:8", "paddingRight": "$amount:8",
"paddingTop": "$amount:4", "paddingTop": "$amount:4",
"paddingBottom": "$amount:4" "paddingBottom": "$amount:4"
} }
} }
] ]
}, },
{ {
"columns": [ "columns": [
{ {
"canvas": [ "canvas": [
{ {
"type": "rect", "type": "rect",
"x": 0, "x": 0,
"y": 0, "y": 0,
"w": 515, "w": 515,
"h": 26, "h": 26,
"r": 0, "r": 0,
"lineWidth": 1, "lineWidth": 1,
"color": "$secondaryColor:#403d3d" "color": "$secondaryColor:#403d3d"
} }
], ],
"width": 10, "width": 10,
"margin": [ "margin": [
0, 0,
10, 10,
0, 0,
0 0
] ]
}, },
{ {
"text": "$balanceDueLabel", "text": "$balanceDueLabel",
"style": "subtotalsBalanceDueLabel", "style": "subtotalsBalanceDueLabel",
"margin": [0, 16, 0, 0], "margin": [0, 16, 0, 0],
"width": 370 "width": 370
}, },
{ {
"text": "$balanceDue", "text": "$balanceDue",
"style": "subtotalsBalanceDue", "style": "subtotalsBalanceDue",
"margin": [0, 16, 8, 0] "margin": [0, 16, 8, 0]
} }
] ]
}, },
{ {
"stack": [ "stack": [
"$invoiceDocuments" {
], "image": "$signatureBase64",
"style": "invoiceDocuments" "margin": [
} 200,
], 10,
"footer": [ 0,
{ 0
"canvas": [ ]
{ },
"type": "line", "x1": 0, "y1": 0, "x2": 600, "y2": 0,"lineWidth": 100,"lineColor":"$primaryColor:#f26621" {
}] "text": "$signatureDate",
,"width":10 "margin": [
}, 200,
{ -40,
"columns": [ 0,
{ 0
"width": 350, ]
"stack": [ }
{ ]
"text": "$invoiceFooter", },
"margin": [40, -40, 40, 0], {
"alignment": "left", "stack": [
"color": "#FFFFFF" "$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": "$invoiceFooter",
"margin": [40, -40, 40, 0],
"alignment": "left",
"color": "#FFFFFF"
} }
] ]
}, },
{ {
"stack": "$accountDetails", "stack": "$accountDetails",
"margin": [0, -40, 0, 0], "margin": [0, -40, 0, 0],
"width": "*" "width": "*"
}, },
{ {
"stack": "$accountAddress", "stack": "$accountAddress",
"margin": [0, -40, 0, 0], "margin": [0, -40, 0, 0],
"width": "*" "width": "*"
} }
] ]
} }
], ],
"header": [ "header": [
{ {
"canvas": [{ "type": "line", "x1": 0, "y1": 0, "x2": 600, "y2": 0,"lineWidth": 200,"lineColor":"$primaryColor:#f26621"}],"width":10 "canvas": [{ "type": "line", "x1": 0, "y1": 0, "x2": 600, "y2": 0,"lineWidth": 200,"lineColor":"$primaryColor:#f26621"}],"width":10
}, },
{ {
"columns": [ "columns": [
{ {
"text": "$accountName", "bold": true,"font":"$headerFont","fontSize":30,"color":"#ffffff","margin":[40,20,0,0],"width":350 "text": "$accountName", "bold": true,"font":"$headerFont","fontSize":30,"color":"#ffffff","margin":[40,20,0,0],"width":350
} }
] ]
}, },
{ {
"width": 300, "width": 300,
"table": { "table": {
"body": "$invoiceDetails" "body": "$invoiceDetails"
}, },
"layout": "noBorders", "layout": "noBorders",
"margin": [400, -40, 0, 0] "margin": [400, -40, 0, 0]
} }
], ],
"defaultStyle": { "defaultStyle": {
"font": "$bodyFont", "font": "$bodyFont",
"fontSize": "$fontSize", "fontSize": "$fontSize",
"margin": [8, 4, 8, 4] "margin": [8, 4, 8, 4]
}, },
"styles": { "styles": {
"primaryColor":{ "primaryColor":{
"color": "$primaryColor:#299CC2" "color": "$primaryColor:#299CC2"
}, },
"accountName": { "accountName": {
"margin": [4, 2, 4, 2], "margin": [4, 2, 4, 2],
"color": "$primaryColor:#299CC2" "color": "$primaryColor:#299CC2"
}, },
"accountDetails": { "accountDetails": {
"margin": [4, 2, 4, 2], "margin": [4, 2, 4, 2],
"color": "#FFFFFF" "color": "#FFFFFF"
}, },
"accountAddress": { "accountAddress": {
"margin": [4, 2, 4, 2], "margin": [4, 2, 4, 2],
"color": "#FFFFFF" "color": "#FFFFFF"
}, },
"clientDetails": { "clientDetails": {
"margin": [0, 2, 4, 2] "margin": [0, 2, 4, 2]
}, },
"invoiceDetails": { "invoiceDetails": {
"color": "#FFFFFF" "color": "#FFFFFF"
}, },
"invoiceLineItemsTable": { "invoiceLineItemsTable": {
"margin": [0, 0, 0, 16] "margin": [0, 0, 0, 16]
}, },
"productKey": { "productKey": {
"bold": true "bold": true
}, },
"clientName": { "clientName": {
"bold": true "bold": true
}, },
"tableHeader": { "tableHeader": {
"bold": true, "bold": true,
"color": "#FFFFFF", "color": "#FFFFFF",
"fontSize": "$fontSizeLargest", "fontSize": "$fontSizeLargest",
"fillColor": "$secondaryColor:#403d3d" "fillColor": "$secondaryColor:#403d3d"
}, },
"costTableHeader": { "costTableHeader": {
"alignment": "right" "alignment": "right"
}, },
"qtyTableHeader": { "qtyTableHeader": {
"alignment": "right" "alignment": "right"
}, },
"taxTableHeader": { "taxTableHeader": {
"alignment": "right" "alignment": "right"
}, },
"lineTotalTableHeader": { "lineTotalTableHeader": {
"alignment": "right" "alignment": "right"
}, },
"subtotalsBalanceDueLabel": { "subtotalsBalanceDueLabel": {
"fontSize": "$fontSizeLargest", "fontSize": "$fontSizeLargest",
"color":"#FFFFFF", "color":"#FFFFFF",
"alignment":"right", "alignment":"right",
"bold": true "bold": true
}, },
"subtotalsBalanceDue": { "subtotalsBalanceDue": {
"fontSize": "$fontSizeLargest", "fontSize": "$fontSizeLargest",
"color":"#FFFFFF", "color":"#FFFFFF",
"bold": true, "bold": true,
"alignment":"right" "alignment":"right"
}, },
"cost": { "cost": {
"alignment": "right" "alignment": "right"
}, },
"quantity": { "quantity": {
"alignment": "right" "alignment": "right"
}, },
"tax": { "tax": {
"alignment": "right" "alignment": "right"
}, },
"lineTotal": { "lineTotal": {
"alignment": "right" "alignment": "right"
}, },
"subtotals": { "subtotals": {
"alignment": "right" "alignment": "right"
}, },
"termsLabel": { "termsLabel": {
"bold": true, "bold": true,
"margin": [0, 0, 0, 4] "margin": [0, 0, 0, 4]
}, },
"invoiceNumberLabel": { "invoiceNumberLabel": {
"bold": true "bold": true
}, },
"invoiceNumber": { "invoiceNumber": {
"bold": true "bold": true
}, },
"fullheader": { "fullheader": {
"font": "$headerFont", "font": "$headerFont",
"fontSize": "$fontSizeLargest", "fontSize": "$fontSizeLargest",
"bold": true "bold": true
}, },
"subheader": { "subheader": {
"font": "$headerFont", "font": "$headerFont",
"fontSize": "$fontSizeLarger" "fontSize": "$fontSizeLarger"
}, },
"help": { "help": {
"fontSize": "$fontSizeSmaller", "fontSize": "$fontSizeSmaller",
"color": "#737373" "color": "#737373"
}, },
"invoiceDocuments": { "invoiceDocuments": {
"margin": [7, 0, 7, 0] "margin": [7, 0, 7, 0]
}, },
"invoiceDocument": { "invoiceDocument": {
"margin": [0, 10, 0, 10] "margin": [0, 10, 0, 10]
} }
}, },
"pageMargins": [40, 120, 40, 50] "pageMargins": [40, 120, 40, 50]
} }

File diff suppressed because one or more lines are too long

View File

@ -1,187 +1,209 @@
{ {
"content": [ "content": [
{
"columns": [
{
"stack": "$accountDetails"
},
{
"stack": "$accountAddress"
},
[
{
"image": "$accountLogo",
"fit": [120, 80]
}
]
]},
{ {
"columns": [ "columns": [
{ {
"width": 340, "stack": "$accountDetails"
"stack": "$clientDetails", },
"margin": [0,40,0,0] {
"stack": "$accountAddress"
},
[
{
"image": "$accountLogo",
"fit": [120, 80]
}
]
]},
{
"columns": [
{
"width": 340,
"stack": "$clientDetails",
"margin": [0,40,0,0]
},
{
"width":200,
"table": {
"body": "$invoiceDetails"
}, },
{ "layout": {
"width":200, "hLineWidth": "$none",
"table": { "vLineWidth": "$none",
"body": "$invoiceDetails" "hLineColor": "#E6E6E6",
}, "paddingLeft": "$amount:10",
"layout": { "paddingRight": "$amount:10"
"hLineWidth": "$none",
"vLineWidth": "$none",
"hLineColor": "#E6E6E6",
"paddingLeft": "$amount:10",
"paddingRight": "$amount:10"
}
} }
}
] ]
}, },
{ {
"canvas": [{ "type": "rect", "x": 0, "y": 0, "w": 515, "h": 25,"r":0, "lineWidth": 1,"color":"#e6e6e6"}],"width":10,"margin":[0,30,0,-43] "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", "style": "invoiceLineItemsTable",
"table": { "table": {
"headerRows": 1, "headerRows": 1,
"widths": "$invoiceLineItemColumns", "widths": "$invoiceLineItemColumns",
"body": "$invoiceLineItems" "body": "$invoiceLineItems"
}, },
"layout": { "layout": {
"hLineWidth": "$notFirst:1", "hLineWidth": "$notFirst:1",
"vLineWidth": "$none", "vLineWidth": "$none",
"hLineColor": "#e6e6e6", "hLineColor": "#e6e6e6",
"paddingLeft": "$amount:8", "paddingLeft": "$amount:8",
"paddingRight": "$amount:8", "paddingRight": "$amount:8",
"paddingTop": "$amount:8", "paddingTop": "$amount:8",
"paddingBottom": "$amount:8" "paddingBottom": "$amount:8"
} }
}, },
{ {
"columns": [ "columns": [
"$notesAndTerms", "$notesAndTerms",
{ {
"width": 160, "width": 160,
"style": "subtotals", "style": "subtotals",
"table": { "table": {
"widths": [60, 60], "widths": [60, 60],
"body": "$subtotals" "body": "$subtotals"
}, },
"layout": { "layout": {
"hLineWidth": "$none", "hLineWidth": "$none",
"vLineWidth": "$none", "vLineWidth": "$none",
"paddingLeft": "$amount:10", "paddingLeft": "$amount:10",
"paddingRight": "$amount:10", "paddingRight": "$amount:10",
"paddingTop": "$amount:4", "paddingTop": "$amount:4",
"paddingBottom": "$amount:4" "paddingBottom": "$amount:4"
} }
} }
] ]
}, },
{ {
"stack": [ "stack": [
"$invoiceDocuments" {
], "image": "$signatureBase64",
"style": "invoiceDocuments" "margin": [
} 200,
], 10,
"footer": { 0,
"columns": [ 0
{ ]
"text": "$invoiceFooter", },
"alignment": "left", {
"margin": [0, 0, 0, 12] "text": "$signatureDate",
"margin": [
200,
-40,
0,
0
]
}
]
},
{
"stack": [
"$invoiceDocuments"
],
"style": "invoiceDocuments"
}
],
"footer": {
"columns": [
{
"text": "$invoiceFooter",
"alignment": "left",
"margin": [0, 0, 0, 12]
} }
], ],
"margin": [40, -20, 40, 40] "margin": [40, -20, 40, 40]
}, },
"defaultStyle": { "defaultStyle": {
"font": "$bodyFont", "font": "$bodyFont",
"fontSize": "$fontSize", "fontSize": "$fontSize",
"margin": [8, 4, 8, 4] "margin": [8, 4, 8, 4]
}, },
"styles": { "styles": {
"primaryColor":{ "primaryColor":{
"color": "$primaryColor:#299CC2" "color": "$primaryColor:#299CC2"
}, },
"accountDetails": { "accountDetails": {
"margin": [0, 2, 0, 1] "margin": [0, 2, 0, 1]
}, },
"accountAddress": { "accountAddress": {
"margin": [0, 2, 0, 1] "margin": [0, 2, 0, 1]
}, },
"clientDetails": { "clientDetails": {
"margin": [0, 2, 0, 1] "margin": [0, 2, 0, 1]
}, },
"tableHeader": { "tableHeader": {
"bold": true "bold": true
}, },
"costTableHeader": { "costTableHeader": {
"alignment": "right" "alignment": "right"
}, },
"qtyTableHeader": { "qtyTableHeader": {
"alignment": "right" "alignment": "right"
}, },
"lineTotalTableHeader": { "lineTotalTableHeader": {
"alignment": "right" "alignment": "right"
}, },
"invoiceLineItemsTable": { "invoiceLineItemsTable": {
"margin": [0, 16, 0, 16] "margin": [0, 16, 0, 16]
}, },
"cost": { "cost": {
"alignment": "right" "alignment": "right"
}, },
"quantity": { "quantity": {
"alignment": "right" "alignment": "right"
}, },
"tax": { "tax": {
"alignment": "right" "alignment": "right"
}, },
"lineTotal": { "lineTotal": {
"alignment": "right" "alignment": "right"
}, },
"subtotals": { "subtotals": {
"alignment": "right" "alignment": "right"
}, },
"termsLabel": { "termsLabel": {
"bold": true, "bold": true,
"margin": [0, 0, 0, 4] "margin": [0, 0, 0, 4]
}, },
"terms": { "terms": {
"margin": [0, 0, 20, 0] "margin": [0, 0, 20, 0]
}, },
"invoiceDetailBalanceDueLabel": { "invoiceDetailBalanceDueLabel": {
"fillColor": "#e6e6e6" "fillColor": "#e6e6e6"
}, },
"invoiceDetailBalanceDue": { "invoiceDetailBalanceDue": {
"fillColor": "#e6e6e6" "fillColor": "#e6e6e6"
}, },
"subtotalsBalanceDueLabel": { "subtotalsBalanceDueLabel": {
"fillColor": "#e6e6e6" "fillColor": "#e6e6e6"
}, },
"subtotalsBalanceDue": { "subtotalsBalanceDue": {
"fillColor": "#e6e6e6" "fillColor": "#e6e6e6"
}, },
"fullheader": { "fullheader": {
"font": "$headerFont", "font": "$headerFont",
"fontSize": "$fontSizeLargest", "fontSize": "$fontSizeLargest",
"bold": true "bold": true
}, },
"subheader": { "subheader": {
"font": "$headerFont", "font": "$headerFont",
"fontSize": "$fontSizeLarger" "fontSize": "$fontSizeLarger"
}, },
"help": { "help": {
"fontSize": "$fontSizeSmaller", "fontSize": "$fontSizeSmaller",
"color": "#737373" "color": "#737373"
}, },
"invoiceDocuments": { "invoiceDocuments": {
"margin": [7, 0, 7, 0] "margin": [7, 0, 7, 0]
}, },
"invoiceDocument": { "invoiceDocument": {
"margin": [0, 10, 0, 10] "margin": [0, 10, 0, 10]
} }
}, },
"pageMargins": [40, 40, 40, 60] "pageMargins": [40, 40, 40, 60]
} }

View File

@ -1,272 +1,294 @@
{ {
"content": [ "content": [
{ {
"columns": [ "columns": [
{ {
"image": "$accountLogo", "image": "$accountLogo",
"fit": [120, 80] "fit": [120, 80]
}, },
{"canvas": [{ "type": "rect", "x": 0, "y": 0, "w": 190, "h": "$invoiceDetailsHeight","r":5, "lineWidth": 1,"color":"$primaryColor:#009d91"}],"width":10,"margin":[200,0,0,0]}, {"canvas": [{ "type": "rect", "x": 0, "y": 0, "w": 190, "h": "$invoiceDetailsHeight","r":5, "lineWidth": 1,"color":"$primaryColor:#009d91"}],"width":10,"margin":[200,0,0,0]},
{ {
"width":400, "width":400,
"table": { "table": {
"body": "$invoiceDetails" "body": "$invoiceDetails"
}, },
"layout": "noBorders", "layout": "noBorders",
"margin": [210, 10, 10, 0] "margin": [210, 10, 10, 0]
} }
] ]
}, },
{ {
"margin": [0, 18, 0, 0], "margin": [0, 18, 0, 0],
"columnGap": 50, "columnGap": 50,
"columns": [ "columns": [
{
"width": 212,
"stack": [
{"text": "$invoiceToLabel:", "style": "toLabel"},
{ {
"width": 212, "canvas": [{ "type": "line", "x1": 0, "y1": 4, "x2": 150, "y2": 4, "lineWidth": 1,"dash": { "length": 3 },"lineColor":"$primaryColor:#009d91"}],
"stack": [ "margin": [0, 0, 0, 4]
{"text": "$invoiceToLabel:", "style": "toLabel"},
{
"canvas": [{ "type": "line", "x1": 0, "y1": 4, "x2": 150, "y2": 4, "lineWidth": 1,"dash": { "length": 3 },"lineColor":"$primaryColor:#009d91"}],
"margin": [0, 0, 0, 4]
},
"$clientDetails",
{"canvas": [{ "type": "line", "x1": 0, "y1": 9, "x2": 150, "y2": 9, "lineWidth": 1,"dash": { "length": 3 },"lineColor":"$primaryColor:#009d91"}]}
]
}, },
"$clientDetails",
{"canvas": [{ "type": "line", "x1": 0, "y1": 9, "x2": 150, "y2": 9, "lineWidth": 1,"dash": { "length": 3 },"lineColor":"$primaryColor:#009d91"}]}
]
},
{
"width": "*",
"stack": [
{"text": "$fromLabel:", "style": "fromLabel"},
{ {
"width": "*", "canvas": [{ "type": "line", "x1": 0, "y1": 4, "x2": 250, "y2": 4, "lineWidth": 1,"dash": { "length": 3 },"lineColor":"$primaryColor:#009d91"}],
"stack": [ "margin": [0, 0, 0, 4]
{"text": "$fromLabel:", "style": "fromLabel"}, },
{ {"columns":[
"canvas": [{ "type": "line", "x1": 0, "y1": 4, "x2": 250, "y2": 4, "lineWidth": 1,"dash": { "length": 3 },"lineColor":"$primaryColor:#009d91"}], "$accountDetails",
"margin": [0, 0, 0, 4] "$accountAddress"
}, ], "columnGap": 4},
{"columns":[ {"canvas": [{ "type": "line", "x1": 0, "y1": 9, "x2": 250, "y2": 9, "lineWidth": 1,"dash": { "length": 3 },"lineColor":"$primaryColor:#009d91"}]}
"$accountDetails", ]
"$accountAddress" }
], "columnGap": 4},
{"canvas": [{ "type": "line", "x1": 0, "y1": 9, "x2": 250, "y2": 9, "lineWidth": 1,"dash": { "length": 3 },"lineColor":"$primaryColor:#009d91"}]}
]
}
] ]
}, },
{"canvas": [{ "type": "rect", "x": 0, "y": 0, "w": 515, "h": 35,"r":6, "lineWidth": 1,"color":"$primaryColor:#009d91"}],"width":10,"margin":[0,30,0,-30]}, {"canvas": [{ "type": "rect", "x": 0, "y": 0, "w": 515, "h": 35,"r":6, "lineWidth": 1,"color":"$primaryColor:#009d91"}],"width":10,"margin":[0,30,0,-30]},
{ {
"style": "invoiceLineItemsTable", "style": "invoiceLineItemsTable",
"table": { "table": {
"headerRows": 1, "headerRows": 1,
"widths": "$invoiceLineItemColumns", "widths": "$invoiceLineItemColumns",
"body": "$invoiceLineItems" "body": "$invoiceLineItems"
}, },
"layout": { "layout": {
"hLineWidth": "$notFirst:.5", "hLineWidth": "$notFirst:.5",
"vLineWidth": "$none", "vLineWidth": "$none",
"hLineColor": "$primaryColor:#009d91", "hLineColor": "$primaryColor:#009d91",
"paddingLeft": "$amount:8", "paddingLeft": "$amount:8",
"paddingRight": "$amount:8", "paddingRight": "$amount:8",
"paddingTop": "$amount:8", "paddingTop": "$amount:8",
"paddingBottom": "$amount:8" "paddingBottom": "$amount:8"
} }
}, },
{ {
"columns": [ "columns": [
"$notesAndTerms", "$notesAndTerms",
{ {
"stack": [ "stack": [
{ {
"style": "subtotals", "style": "subtotals",
"table": { "table": {
"widths": ["*", "35%"], "widths": ["*", "35%"],
"body": "$subtotalsWithoutBalance" "body": "$subtotalsWithoutBalance"
}, },
"layout": { "layout": {
"hLineWidth": "$none", "hLineWidth": "$none",
"vLineWidth": "$none", "vLineWidth": "$none",
"paddingLeft": "$amount:34", "paddingLeft": "$amount:34",
"paddingRight": "$amount:8", "paddingRight": "$amount:8",
"paddingTop": "$amount:4", "paddingTop": "$amount:4",
"paddingBottom": "$amount:4" "paddingBottom": "$amount:4"
} }
}, },
{ {
"canvas": [ "canvas": [
{ {
"type": "rect", "type": "rect",
"x": 76, "x": 76,
"y": 20, "y": 20,
"w": 182, "w": 182,
"h": 30, "h": 30,
"r": 4, "r": 4,
"lineWidth": 1, "lineWidth": 1,
"color": "$primaryColor:#009d91" "color": "$primaryColor:#009d91"
} }
] ]
}, },
{ {
"style": "subtotalsBalance", "style": "subtotalsBalance",
"table": { "table": {
"widths": ["*", "35%"], "widths": ["*", "35%"],
"body": "$subtotalsBalance" "body": "$subtotalsBalance"
}, },
"layout": { "layout": {
"hLineWidth": "$none", "hLineWidth": "$none",
"vLineWidth": "$none", "vLineWidth": "$none",
"paddingLeft": "$amount:34", "paddingLeft": "$amount:34",
"paddingRight": "$amount:8", "paddingRight": "$amount:8",
"paddingTop": "$amount:4", "paddingTop": "$amount:4",
"paddingBottom": "$amount:4" "paddingBottom": "$amount:4"
} }
} }
] ]
} }
] ]
}, },
{ {
"stack": [ "stack": [
"$invoiceDocuments" {
], "image": "$signatureBase64",
"style": "invoiceDocuments" "margin": [
} 200,
], 10,
"footer": [ 0,
{"canvas": [{ "type": "line", "x1": 0, "y1": 38, "x2": 68, "y2": 38, "lineWidth": 6,"lineColor":"#009d91"}]}, 0
{"canvas": [{ "type": "line", "x1": 68, "y1": 0, "x2": 135, "y2": 0, "lineWidth": 6,"lineColor":"#1d766f"}]}, ]
{"canvas": [{ "type": "line", "x1": 135, "y1": 0, "x2": 201, "y2": 0, "lineWidth": 6,"lineColor":"#ffb800"}]}, },
{"canvas": [{ "type": "line", "x1": 201, "y1": 0, "x2": 267, "y2": 0, "lineWidth": 6,"lineColor":"#bf9730"}]}, {
{"canvas": [{ "type": "line", "x1": 267, "y1": 0, "x2": 333, "y2": 0, "lineWidth": 6,"lineColor":"#ac2b50"}]}, "text": "$signatureDate",
{"canvas": [{ "type": "line", "x1": 333, "y1": 0, "x2": 399, "y2": 0, "lineWidth": 6,"lineColor":"#e60042"}]}, "margin": [
{"canvas": [{ "type": "line", "x1": 399, "y1": 0, "x2": 465, "y2": 0, "lineWidth": 6,"lineColor":"#ffb800"}]}, 200,
{"canvas": [{ "type": "line", "x1": 465, "y1": 0, "x2": 532, "y2": 0, "lineWidth": 6,"lineColor":"#009d91"}]}, -40,
{"canvas": [{ "type": "line", "x1": 532, "y1": 0, "x2": 600, "y2": 0, "lineWidth": 6,"lineColor":"#ac2b50"}]}, 0,
{ 0
"text": "$invoiceFooter", ]
"alignment": "left", }
"margin": [40, -60, 40, 0] ]
} },
], {
"header": [ "stack": [
{"canvas": [{ "type": "line", "x1": 0, "y1": 0, "x2": 68, "y2": 0, "lineWidth": 9,"lineColor":"#009d91"}]}, "$invoiceDocuments"
{"canvas": [{ "type": "line", "x1": 68, "y1": 0, "x2": 135, "y2": 0, "lineWidth": 9,"lineColor":"#1d766f"}]}, ],
{"canvas": [{ "type": "line", "x1": 135, "y1": 0, "x2": 201, "y2": 0, "lineWidth": 9,"lineColor":"#ffb800"}]}, "style": "invoiceDocuments"
{"canvas": [{ "type": "line", "x1": 201, "y1": 0, "x2": 267, "y2": 0, "lineWidth": 9,"lineColor":"#bf9730"}]}, }
{"canvas": [{ "type": "line", "x1": 267, "y1": 0, "x2": 333, "y2": 0, "lineWidth": 9,"lineColor":"#ac2b50"}]}, ],
{"canvas": [{ "type": "line", "x1": 333, "y1": 0, "x2": 399, "y2": 0, "lineWidth": 9,"lineColor":"#e60042"}]}, "footer": [
{"canvas": [{ "type": "line", "x1": 399, "y1": 0, "x2": 465, "y2": 0, "lineWidth": 9,"lineColor":"#ffb800"}]}, {"canvas": [{ "type": "line", "x1": 0, "y1": 38, "x2": 68, "y2": 38, "lineWidth": 6,"lineColor":"#009d91"}]},
{"canvas": [{ "type": "line", "x1": 465, "y1": 0, "x2": 532, "y2": 0, "lineWidth": 9,"lineColor":"#009d91"}]}, {"canvas": [{ "type": "line", "x1": 68, "y1": 0, "x2": 135, "y2": 0, "lineWidth": 6,"lineColor":"#1d766f"}]},
{"canvas": [{ "type": "line", "x1": 532, "y1": 0, "x2": 600, "y2": 0, "lineWidth": 9,"lineColor":"#ac2b50"}]} {"canvas": [{ "type": "line", "x1": 135, "y1": 0, "x2": 201, "y2": 0, "lineWidth": 6,"lineColor":"#ffb800"}]},
], {"canvas": [{ "type": "line", "x1": 201, "y1": 0, "x2": 267, "y2": 0, "lineWidth": 6,"lineColor":"#bf9730"}]},
"defaultStyle": { {"canvas": [{ "type": "line", "x1": 267, "y1": 0, "x2": 333, "y2": 0, "lineWidth": 6,"lineColor":"#ac2b50"}]},
"fontSize": "$fontSize", {"canvas": [{ "type": "line", "x1": 333, "y1": 0, "x2": 399, "y2": 0, "lineWidth": 6,"lineColor":"#e60042"}]},
"margin": [8, 4, 8, 4] {"canvas": [{ "type": "line", "x1": 399, "y1": 0, "x2": 465, "y2": 0, "lineWidth": 6,"lineColor":"#ffb800"}]},
}, {"canvas": [{ "type": "line", "x1": 465, "y1": 0, "x2": 532, "y2": 0, "lineWidth": 6,"lineColor":"#009d91"}]},
"styles": { {"canvas": [{ "type": "line", "x1": 532, "y1": 0, "x2": 600, "y2": 0, "lineWidth": 6,"lineColor":"#ac2b50"}]},
"accountName": { {
"color": "$secondaryColor:#bb3328" "text": "$invoiceFooter",
}, "alignment": "left",
"accountDetails": { "margin": [40, -60, 40, 0]
"margin": [0, 2, 0, 1] }
}, ],
"accountAddress": { "header": [
"margin": [0, 2, 0, 1] {"canvas": [{ "type": "line", "x1": 0, "y1": 0, "x2": 68, "y2": 0, "lineWidth": 9,"lineColor":"#009d91"}]},
}, {"canvas": [{ "type": "line", "x1": 68, "y1": 0, "x2": 135, "y2": 0, "lineWidth": 9,"lineColor":"#1d766f"}]},
"clientDetails": { {"canvas": [{ "type": "line", "x1": 135, "y1": 0, "x2": 201, "y2": 0, "lineWidth": 9,"lineColor":"#ffb800"}]},
"margin": [0, 2, 0, 1] {"canvas": [{ "type": "line", "x1": 201, "y1": 0, "x2": 267, "y2": 0, "lineWidth": 9,"lineColor":"#bf9730"}]},
}, {"canvas": [{ "type": "line", "x1": 267, "y1": 0, "x2": 333, "y2": 0, "lineWidth": 9,"lineColor":"#ac2b50"}]},
"clientName": { {"canvas": [{ "type": "line", "x1": 333, "y1": 0, "x2": 399, "y2": 0, "lineWidth": 9,"lineColor":"#e60042"}]},
"color": "$secondaryColor:#bb3328" {"canvas": [{ "type": "line", "x1": 399, "y1": 0, "x2": 465, "y2": 0, "lineWidth": 9,"lineColor":"#ffb800"}]},
}, {"canvas": [{ "type": "line", "x1": 465, "y1": 0, "x2": 532, "y2": 0, "lineWidth": 9,"lineColor":"#009d91"}]},
"even": { {"canvas": [{ "type": "line", "x1": 532, "y1": 0, "x2": 600, "y2": 0, "lineWidth": 9,"lineColor":"#ac2b50"}]}
],
"defaultStyle": {
"fontSize": "$fontSize",
"margin": [8, 4, 8, 4]
},
"styles": {
"accountName": {
"color": "$secondaryColor:#bb3328"
},
"accountDetails": {
"margin": [0, 2, 0, 1]
},
"accountAddress": {
"margin": [0, 2, 0, 1]
},
"clientDetails": {
"margin": [0, 2, 0, 1]
},
"clientName": {
"color": "$secondaryColor:#bb3328"
},
"even": {
"fillColor":"#E8E8E8" "fillColor":"#E8E8E8"
}, },
"odd": { "odd": {
"fillColor":"#F7F7F7" "fillColor":"#F7F7F7"
}, },
"productKey": { "productKey": {
"color": "$secondaryColor:#bb3328" "color": "$secondaryColor:#bb3328"
}, },
"lineTotal": { "lineTotal": {
"bold": true "bold": true
}, },
"tableHeader": { "tableHeader": {
"bold": true, "bold": true,
"fontSize": "$fontSizeLargest", "fontSize": "$fontSizeLargest",
"color": "#FFFFFF" "color": "#FFFFFF"
}, },
"secondTableHeader": { "secondTableHeader": {
"color": "$primaryColor:#009d91" "color": "$primaryColor:#009d91"
}, },
"costTableHeader": { "costTableHeader": {
"alignment": "right" "alignment": "right"
}, },
"qtyTableHeader": { "qtyTableHeader": {
"alignment": "right" "alignment": "right"
}, },
"lineTotalTableHeader": { "lineTotalTableHeader": {
"alignment": "right" "alignment": "right"
}, },
"subtotalsBalanceDueLabel": { "subtotalsBalanceDueLabel": {
"fontSize": "$fontSizeLargest", "fontSize": "$fontSizeLargest",
"color":"#FFFFFF", "color":"#FFFFFF",
"bold": true "bold": true
}, },
"subtotalsBalanceDue": { "subtotalsBalanceDue": {
"fontSize": "$fontSizeLargest", "fontSize": "$fontSizeLargest",
"bold": true, "bold": true,
"color":"#FFFFFF", "color":"#FFFFFF",
"alignment":"right" "alignment":"right"
}, },
"invoiceDetails": { "invoiceDetails": {
"color": "#FFFFFF" "color": "#FFFFFF"
}, },
"invoiceLineItemsTable": { "invoiceLineItemsTable": {
"margin": [0, 0, 0, 16] "margin": [0, 0, 0, 16]
}, },
"invoiceDetailBalanceDueLabel": { "invoiceDetailBalanceDueLabel": {
"bold": true "bold": true
}, },
"invoiceDetailBalanceDue": { "invoiceDetailBalanceDue": {
"bold": true "bold": true
}, },
"fromLabel": { "fromLabel": {
"color": "$primaryColor:#009d91" "color": "$primaryColor:#009d91"
}, },
"toLabel": { "toLabel": {
"color": "$primaryColor:#009d91" "color": "$primaryColor:#009d91"
}, },
"cost": { "cost": {
"alignment": "right" "alignment": "right"
}, },
"quantity": { "quantity": {
"alignment": "right" "alignment": "right"
}, },
"tax": { "tax": {
"alignment": "right" "alignment": "right"
}, },
"lineTotal": { "lineTotal": {
"alignment": "right" "alignment": "right"
}, },
"subtotals": { "subtotals": {
"alignment": "right" "alignment": "right"
}, },
"subtotalsBalance": { "subtotalsBalance": {
"alignment": "right", "alignment": "right",
"margin": [0, -25, 0, 0] "margin": [0, -25, 0, 0]
}, },
"termsLabel": { "termsLabel": {
"bold": true, "bold": true,
"margin": [0, 0, 0, 4] "margin": [0, 0, 0, 4]
}, },
"fullheader": { "fullheader": {
"fontSize": "$fontSizeLargest", "fontSize": "$fontSizeLargest",
"bold": true "bold": true
}, },
"subheader": { "subheader": {
"fontSize": "$fontSizeLarger" "fontSize": "$fontSizeLarger"
}, },
"help": { "help": {
"fontSize": "$fontSizeSmaller", "fontSize": "$fontSizeSmaller",
"color": "#737373" "color": "#737373"
} }
}, },
"pageMargins": [40, 40, 40, 40] "pageMargins": [40, 40, 40, 40]
} }