mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-18 23:42:25 +02:00
Added option to show/hide signature on the PDF
This commit is contained in:
parent
97e4bf0e8d
commit
0fbe83eaaf
@ -180,6 +180,7 @@ class Account extends Eloquent
|
||||
'task_rate',
|
||||
'inclusive_taxes',
|
||||
'convert_products',
|
||||
'signature_on_pdf',
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -992,6 +992,7 @@ class Invoice extends EntityModel implements BalanceAffecting
|
||||
'date_format',
|
||||
'datetime_format',
|
||||
'timezone',
|
||||
'signature_on_pdf',
|
||||
]);
|
||||
|
||||
foreach ($this->invitations as $invitation) {
|
||||
|
@ -278,6 +278,7 @@ class AccountTransformer extends EntityTransformer
|
||||
'task_rate' => (float) $account->task_rate,
|
||||
'inclusive_taxes' => (bool) $account->inclusive_taxes,
|
||||
'convert_products' => (bool) $account->convert_products,
|
||||
'signature_on_pdf' => (bool) $account->signature_on_pdf,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -51,6 +51,7 @@ class AddRemember2faToken extends Migration
|
||||
Schema::table('accounts', function ($table) {
|
||||
$table->boolean('convert_products')->default(false);
|
||||
$table->boolean('enable_reminder4')->default(false);
|
||||
$table->boolean('signature_on_pdf')->default(false);
|
||||
});
|
||||
|
||||
Schema::table('invoice_items', function ($table) {
|
||||
@ -125,6 +126,7 @@ class AddRemember2faToken extends Migration
|
||||
Schema::table('accounts', function ($table) {
|
||||
$table->dropColumn('convert_products');
|
||||
$table->dropColumn('enable_reminder4');
|
||||
$table->dropColumn('signature_on_pdf');
|
||||
});
|
||||
|
||||
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
@ -366,6 +366,10 @@ NINJA.signatureImage = function(invoice) {
|
||||
return blankImage;
|
||||
}
|
||||
|
||||
if (! parseInt(invoice.account.signature_on_pdf)) {
|
||||
return blankImage;
|
||||
}
|
||||
|
||||
return invoice.invitations[0].signature_base64 || blankImage;
|
||||
}
|
||||
|
||||
@ -374,8 +378,11 @@ NINJA.signatureDate = function(invoice) {
|
||||
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);
|
||||
}
|
||||
|
||||
|
@ -2639,7 +2639,9 @@ $LANG = array(
|
||||
'view_project' => 'View Project',
|
||||
'summary' => 'Summary',
|
||||
'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.',
|
||||
|
||||
);
|
||||
|
||||
|
@ -37,6 +37,7 @@
|
||||
{!! 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_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])
|
||||
|
||||
@ -195,11 +196,17 @@
|
||||
->help(trans('texts.require_invoice_signature_help'))
|
||||
->label(trans('texts.require_invoice_signature'))
|
||||
->value(1) !!}
|
||||
|
||||
{!! Former::checkbox('require_quote_signature')
|
||||
->text(trans('texts.enable'))
|
||||
->help(trans('texts.require_quote_signature_help'))
|
||||
->label(trans('texts.require_quote_signature'))
|
||||
->value(1) !!}
|
||||
|
||||
{!! Former::checkbox('signature_on_pdf')
|
||||
->text(trans('texts.enable'))
|
||||
->help(trans('texts.signature_on_pdf_help'))
|
||||
->value(1) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,386 +1,408 @@
|
||||
{
|
||||
"content":[
|
||||
{
|
||||
"columns":[
|
||||
{
|
||||
"width":380,
|
||||
"stack":[
|
||||
{
|
||||
"text":"$yourInvoiceLabelUC",
|
||||
"style":"yourInvoice"
|
||||
},
|
||||
"$clientDetails"
|
||||
],
|
||||
"margin":[
|
||||
60,
|
||||
100,
|
||||
0,
|
||||
10
|
||||
]
|
||||
},
|
||||
{
|
||||
"canvas":[
|
||||
{
|
||||
"type":"rect",
|
||||
"x":0,
|
||||
"y":0,
|
||||
"w":225,
|
||||
"h":"$invoiceDetailsHeight",
|
||||
"r":0,
|
||||
"lineWidth":1,
|
||||
"color":"$primaryColor:#36a498"
|
||||
}
|
||||
],
|
||||
"width":10,
|
||||
"margin":[
|
||||
-10,
|
||||
100,
|
||||
0,
|
||||
10
|
||||
]
|
||||
},
|
||||
{
|
||||
"table":{
|
||||
"body":"$invoiceDetails"
|
||||
},
|
||||
"layout":"noBorders",
|
||||
"margin":[
|
||||
0,
|
||||
110,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"style":"invoiceLineItemsTable",
|
||||
"table":{
|
||||
"headerRows":1,
|
||||
"widths":"$invoiceLineItemColumns",
|
||||
"body":"$invoiceLineItems"
|
||||
},
|
||||
"layout":{
|
||||
"hLineWidth":"$none",
|
||||
"vLineWidth":"$none",
|
||||
"paddingLeft":"$amount:8",
|
||||
"paddingRight":"$amount:8",
|
||||
"paddingTop":"$amount:14",
|
||||
"paddingBottom":"$amount:14"
|
||||
}
|
||||
},
|
||||
{
|
||||
"columns":[
|
||||
{
|
||||
"width":46,
|
||||
"text":" "
|
||||
},
|
||||
"$notesAndTerms",
|
||||
{
|
||||
"table":{
|
||||
"widths":[
|
||||
"*",
|
||||
"40%"
|
||||
],
|
||||
"body":"$subtotals"
|
||||
},
|
||||
"layout":{
|
||||
"hLineWidth":"$none",
|
||||
"vLineWidth":"$none",
|
||||
"paddingLeft":"$amount:8",
|
||||
"paddingRight":"$amount:8",
|
||||
"paddingTop":"$amount:4",
|
||||
"paddingBottom":"$amount:4"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"stack":[
|
||||
"$invoiceDocuments"
|
||||
],
|
||||
"style":"invoiceDocuments"
|
||||
}
|
||||
],
|
||||
"footer":[
|
||||
{
|
||||
"canvas":[
|
||||
{
|
||||
"type":"line",
|
||||
"x1":0,
|
||||
"y1":0,
|
||||
"x2":600,
|
||||
"y2":0,
|
||||
"lineWidth":100,
|
||||
"lineColor":"$secondaryColor:#292526"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"columns":[
|
||||
{
|
||||
"text":"$invoiceFooter",
|
||||
"margin":[
|
||||
40,
|
||||
-40,
|
||||
40,
|
||||
0
|
||||
],
|
||||
"alignment":"left",
|
||||
"color":"#FFFFFF"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"header":[
|
||||
{
|
||||
"canvas":[
|
||||
{
|
||||
"type":"line",
|
||||
"x1":0,
|
||||
"y1":0,
|
||||
"x2":600,
|
||||
"y2":0,
|
||||
"lineWidth":200,
|
||||
"lineColor":"$secondaryColor:#292526"
|
||||
}
|
||||
],
|
||||
"width":10
|
||||
},
|
||||
{
|
||||
"columns":[
|
||||
{
|
||||
"image":"$accountLogo",
|
||||
"fit":[
|
||||
120,
|
||||
60
|
||||
],
|
||||
"margin":[
|
||||
30,
|
||||
16,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"stack":"$accountDetails",
|
||||
"margin":[
|
||||
0,
|
||||
16,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"width":140
|
||||
},
|
||||
{
|
||||
"stack":"$accountAddress",
|
||||
"margin":[
|
||||
20,
|
||||
16,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"defaultStyle":{
|
||||
"font":"$bodyFont",
|
||||
"fontSize":"$fontSize",
|
||||
"margin":[
|
||||
8,
|
||||
4,
|
||||
8,
|
||||
4
|
||||
]
|
||||
},
|
||||
"styles":{
|
||||
"primaryColor":{
|
||||
"color":"$primaryColor:#36a498"
|
||||
},
|
||||
"accountName":{
|
||||
"bold":true,
|
||||
"margin":[
|
||||
4,
|
||||
2,
|
||||
4,
|
||||
1
|
||||
],
|
||||
"color":"$primaryColor:#36a498"
|
||||
},
|
||||
"accountDetails":{
|
||||
"margin":[
|
||||
4,
|
||||
2,
|
||||
4,
|
||||
1
|
||||
],
|
||||
"color":"#FFFFFF"
|
||||
},
|
||||
"accountAddress":{
|
||||
"margin":[
|
||||
4,
|
||||
2,
|
||||
4,
|
||||
1
|
||||
],
|
||||
"color":"#FFFFFF"
|
||||
},
|
||||
"clientDetails":{
|
||||
"margin":[
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
1
|
||||
]
|
||||
},
|
||||
"odd":{
|
||||
"fillColor":"#ebebeb"
|
||||
},
|
||||
"subtotalsBalanceDueLabel":{
|
||||
"fontSize":"$fontSizeLargest",
|
||||
"bold":true
|
||||
},
|
||||
"subtotalsBalanceDue":{
|
||||
"fontSize":"$fontSizeLargest",
|
||||
"color":"$primaryColor:#36a498",
|
||||
"bold":true
|
||||
},
|
||||
"invoiceDetails":{
|
||||
"color":"#ffffff"
|
||||
},
|
||||
"invoiceNumber":{
|
||||
"bold":true
|
||||
},
|
||||
"tableHeader":{
|
||||
"fontSize":12,
|
||||
"bold":true
|
||||
},
|
||||
"costTableHeader":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"qtyTableHeader":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"taxTableHeader":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"lineTotalTableHeader":{
|
||||
"alignment":"right",
|
||||
"margin":[
|
||||
0,
|
||||
0,
|
||||
40,
|
||||
0
|
||||
]
|
||||
},
|
||||
"firstColumn":{
|
||||
"margin":[
|
||||
40,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
"lastColumn":{
|
||||
"margin":[
|
||||
0,
|
||||
0,
|
||||
40,
|
||||
0
|
||||
]
|
||||
},
|
||||
"productKey":{
|
||||
"color":"$primaryColor:#36a498",
|
||||
"bold":true
|
||||
},
|
||||
"yourInvoice":{
|
||||
"font":"$headerFont",
|
||||
"bold":true,
|
||||
"fontSize":14,
|
||||
"color":"$primaryColor:#36a498",
|
||||
"margin":[
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
8
|
||||
]
|
||||
},
|
||||
"invoiceLineItemsTable":{
|
||||
"margin":[
|
||||
0,
|
||||
26,
|
||||
0,
|
||||
16
|
||||
]
|
||||
},
|
||||
"clientName":{
|
||||
"bold":true
|
||||
},
|
||||
"cost":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"quantity":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"tax":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"lineTotal":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"subtotals":{
|
||||
"alignment":"right",
|
||||
"margin":[
|
||||
0,
|
||||
0,
|
||||
40,
|
||||
0
|
||||
]
|
||||
},
|
||||
"termsLabel":{
|
||||
"bold":true,
|
||||
"margin":[
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
4
|
||||
]
|
||||
},
|
||||
"fullheader":{
|
||||
"font":"$headerFont",
|
||||
"fontSize":"$fontSizeLargest",
|
||||
"bold":true
|
||||
},
|
||||
"subheader":{
|
||||
"font":"$headerFont",
|
||||
"fontSize":"$fontSizeLarger"
|
||||
},
|
||||
"help":{
|
||||
"fontSize":"$fontSizeSmaller",
|
||||
"color":"#737373"
|
||||
},
|
||||
"invoiceDocuments":{
|
||||
"margin":[
|
||||
47,
|
||||
0,
|
||||
47,
|
||||
0
|
||||
]
|
||||
},
|
||||
"invoiceDocument":{
|
||||
"margin":[
|
||||
0,
|
||||
10,
|
||||
0,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"pageMargins":[
|
||||
0,
|
||||
80,
|
||||
0,
|
||||
40
|
||||
]
|
||||
"content":[
|
||||
{
|
||||
"columns":[
|
||||
{
|
||||
"width":380,
|
||||
"stack":[
|
||||
{
|
||||
"text":"$yourInvoiceLabelUC",
|
||||
"style":"yourInvoice"
|
||||
},
|
||||
"$clientDetails"
|
||||
],
|
||||
"margin":[
|
||||
60,
|
||||
100,
|
||||
0,
|
||||
10
|
||||
]
|
||||
},
|
||||
{
|
||||
"canvas":[
|
||||
{
|
||||
"type":"rect",
|
||||
"x":0,
|
||||
"y":0,
|
||||
"w":225,
|
||||
"h":"$invoiceDetailsHeight",
|
||||
"r":0,
|
||||
"lineWidth":1,
|
||||
"color":"$primaryColor:#36a498"
|
||||
}
|
||||
],
|
||||
"width":10,
|
||||
"margin":[
|
||||
-10,
|
||||
100,
|
||||
0,
|
||||
10
|
||||
]
|
||||
},
|
||||
{
|
||||
"table":{
|
||||
"body":"$invoiceDetails"
|
||||
},
|
||||
"layout":"noBorders",
|
||||
"margin":[
|
||||
0,
|
||||
110,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"style":"invoiceLineItemsTable",
|
||||
"table":{
|
||||
"headerRows":1,
|
||||
"widths":"$invoiceLineItemColumns",
|
||||
"body":"$invoiceLineItems"
|
||||
},
|
||||
"layout":{
|
||||
"hLineWidth":"$none",
|
||||
"vLineWidth":"$none",
|
||||
"paddingLeft":"$amount:8",
|
||||
"paddingRight":"$amount:8",
|
||||
"paddingTop":"$amount:14",
|
||||
"paddingBottom":"$amount:14"
|
||||
}
|
||||
},
|
||||
{
|
||||
"columns":[
|
||||
{
|
||||
"width":46,
|
||||
"text":" "
|
||||
},
|
||||
"$notesAndTerms",
|
||||
{
|
||||
"table":{
|
||||
"widths":[
|
||||
"*",
|
||||
"40%"
|
||||
],
|
||||
"body":"$subtotals"
|
||||
},
|
||||
"layout":{
|
||||
"hLineWidth":"$none",
|
||||
"vLineWidth":"$none",
|
||||
"paddingLeft":"$amount:8",
|
||||
"paddingRight":"$amount:8",
|
||||
"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":[
|
||||
{
|
||||
"canvas":[
|
||||
{
|
||||
"type":"line",
|
||||
"x1":0,
|
||||
"y1":0,
|
||||
"x2":600,
|
||||
"y2":0,
|
||||
"lineWidth":100,
|
||||
"lineColor":"$secondaryColor:#292526"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"columns":[
|
||||
{
|
||||
"text":"$invoiceFooter",
|
||||
"margin":[
|
||||
40,
|
||||
-40,
|
||||
40,
|
||||
0
|
||||
],
|
||||
"alignment":"left",
|
||||
"color":"#FFFFFF"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"header":[
|
||||
{
|
||||
"canvas":[
|
||||
{
|
||||
"type":"line",
|
||||
"x1":0,
|
||||
"y1":0,
|
||||
"x2":600,
|
||||
"y2":0,
|
||||
"lineWidth":200,
|
||||
"lineColor":"$secondaryColor:#292526"
|
||||
}
|
||||
],
|
||||
"width":10
|
||||
},
|
||||
{
|
||||
"columns":[
|
||||
{
|
||||
"image":"$accountLogo",
|
||||
"fit":[
|
||||
120,
|
||||
60
|
||||
],
|
||||
"margin":[
|
||||
30,
|
||||
16,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"stack":"$accountDetails",
|
||||
"margin":[
|
||||
0,
|
||||
16,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"width":140
|
||||
},
|
||||
{
|
||||
"stack":"$accountAddress",
|
||||
"margin":[
|
||||
20,
|
||||
16,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"defaultStyle":{
|
||||
"font":"$bodyFont",
|
||||
"fontSize":"$fontSize",
|
||||
"margin":[
|
||||
8,
|
||||
4,
|
||||
8,
|
||||
4
|
||||
]
|
||||
},
|
||||
"styles":{
|
||||
"primaryColor":{
|
||||
"color":"$primaryColor:#36a498"
|
||||
},
|
||||
"accountName":{
|
||||
"bold":true,
|
||||
"margin":[
|
||||
4,
|
||||
2,
|
||||
4,
|
||||
1
|
||||
],
|
||||
"color":"$primaryColor:#36a498"
|
||||
},
|
||||
"accountDetails":{
|
||||
"margin":[
|
||||
4,
|
||||
2,
|
||||
4,
|
||||
1
|
||||
],
|
||||
"color":"#FFFFFF"
|
||||
},
|
||||
"accountAddress":{
|
||||
"margin":[
|
||||
4,
|
||||
2,
|
||||
4,
|
||||
1
|
||||
],
|
||||
"color":"#FFFFFF"
|
||||
},
|
||||
"clientDetails":{
|
||||
"margin":[
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
1
|
||||
]
|
||||
},
|
||||
"odd":{
|
||||
"fillColor":"#ebebeb"
|
||||
},
|
||||
"subtotalsBalanceDueLabel":{
|
||||
"fontSize":"$fontSizeLargest",
|
||||
"bold":true
|
||||
},
|
||||
"subtotalsBalanceDue":{
|
||||
"fontSize":"$fontSizeLargest",
|
||||
"color":"$primaryColor:#36a498",
|
||||
"bold":true
|
||||
},
|
||||
"invoiceDetails":{
|
||||
"color":"#ffffff"
|
||||
},
|
||||
"invoiceNumber":{
|
||||
"bold":true
|
||||
},
|
||||
"tableHeader":{
|
||||
"fontSize":12,
|
||||
"bold":true
|
||||
},
|
||||
"costTableHeader":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"qtyTableHeader":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"taxTableHeader":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"lineTotalTableHeader":{
|
||||
"alignment":"right",
|
||||
"margin":[
|
||||
0,
|
||||
0,
|
||||
40,
|
||||
0
|
||||
]
|
||||
},
|
||||
"firstColumn":{
|
||||
"margin":[
|
||||
40,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
"lastColumn":{
|
||||
"margin":[
|
||||
0,
|
||||
0,
|
||||
40,
|
||||
0
|
||||
]
|
||||
},
|
||||
"productKey":{
|
||||
"color":"$primaryColor:#36a498",
|
||||
"bold":true
|
||||
},
|
||||
"yourInvoice":{
|
||||
"font":"$headerFont",
|
||||
"bold":true,
|
||||
"fontSize":14,
|
||||
"color":"$primaryColor:#36a498",
|
||||
"margin":[
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
8
|
||||
]
|
||||
},
|
||||
"invoiceLineItemsTable":{
|
||||
"margin":[
|
||||
0,
|
||||
26,
|
||||
0,
|
||||
16
|
||||
]
|
||||
},
|
||||
"clientName":{
|
||||
"bold":true
|
||||
},
|
||||
"cost":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"quantity":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"tax":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"lineTotal":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"subtotals":{
|
||||
"alignment":"right",
|
||||
"margin":[
|
||||
0,
|
||||
0,
|
||||
40,
|
||||
0
|
||||
]
|
||||
},
|
||||
"termsLabel":{
|
||||
"bold":true,
|
||||
"margin":[
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
4
|
||||
]
|
||||
},
|
||||
"fullheader":{
|
||||
"font":"$headerFont",
|
||||
"fontSize":"$fontSizeLargest",
|
||||
"bold":true
|
||||
},
|
||||
"subheader":{
|
||||
"font":"$headerFont",
|
||||
"fontSize":"$fontSizeLarger"
|
||||
},
|
||||
"help":{
|
||||
"fontSize":"$fontSizeSmaller",
|
||||
"color":"#737373"
|
||||
},
|
||||
"invoiceDocuments":{
|
||||
"margin":[
|
||||
47,
|
||||
0,
|
||||
47,
|
||||
0
|
||||
]
|
||||
},
|
||||
"invoiceDocument":{
|
||||
"margin":[
|
||||
0,
|
||||
10,
|
||||
0,
|
||||
10
|
||||
]
|
||||
}
|
||||
},
|
||||
"pageMargins":[
|
||||
0,
|
||||
80,
|
||||
0,
|
||||
40
|
||||
]
|
||||
}
|
||||
|
@ -1,250 +1,272 @@
|
||||
{
|
||||
"content": [
|
||||
{
|
||||
"columns":
|
||||
[
|
||||
{
|
||||
"image": "$accountLogo",
|
||||
"fit": [120, 80]
|
||||
},
|
||||
{
|
||||
"width": 300,
|
||||
"stack": "$accountDetails",
|
||||
"margin": [140, 0, 0, 0]
|
||||
},
|
||||
{
|
||||
"width": 150,
|
||||
"stack": "$accountAddress"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"content": [
|
||||
{
|
||||
"columns":
|
||||
[
|
||||
{
|
||||
"image": "$accountLogo",
|
||||
"fit": [120, 80]
|
||||
},
|
||||
{
|
||||
"width": 300,
|
||||
"stack": "$accountDetails",
|
||||
"margin": [140, 0, 0, 0]
|
||||
},
|
||||
{
|
||||
"width": 150,
|
||||
"stack": "$accountAddress"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"width": 120,
|
||||
"stack": [
|
||||
{"text": "$invoiceIssuedToLabel", "style":"issuedTo"},
|
||||
"$clientDetails"
|
||||
],
|
||||
{"text": "$invoiceIssuedToLabel", "style":"issuedTo"},
|
||||
"$clientDetails"
|
||||
],
|
||||
"margin": [0, 20, 0, 0]
|
||||
},
|
||||
{
|
||||
"canvas": [{ "type": "rect", "x": 20, "y": 0, "w": 174, "h": "$invoiceDetailsHeight","r":10, "lineWidth": 1,"color":"$primaryColor:#eb792d"}],
|
||||
"width":30,
|
||||
"margin":[200,25,0,0]
|
||||
},
|
||||
"canvas": [{ "type": "rect", "x": 20, "y": 0, "w": 174, "h": "$invoiceDetailsHeight","r":10, "lineWidth": 1,"color":"$primaryColor:#eb792d"}],
|
||||
"width":30,
|
||||
"margin":[200,25,0,0]
|
||||
},
|
||||
{
|
||||
"table": {
|
||||
"widths": [70, 76],
|
||||
"body": "$invoiceDetails"
|
||||
},
|
||||
"layout": "noBorders",
|
||||
"table": {
|
||||
"widths": [70, 76],
|
||||
"body": "$invoiceDetails"
|
||||
},
|
||||
"layout": "noBorders",
|
||||
"margin": [200, 34, 0, 0]
|
||||
}
|
||||
]
|
||||
},
|
||||
{"canvas": [{ "type": "rect", "x": 0, "y": 0, "w": 515, "h": 32,"r":8, "lineWidth": 1,"color":"$secondaryColor:#374e6b"}],"width":10,"margin":[0,20,0,-45]},
|
||||
{
|
||||
"style": "invoiceLineItemsTable",
|
||||
"table": {
|
||||
"headerRows": 1,
|
||||
"widths": "$invoiceLineItemColumns",
|
||||
"body": "$invoiceLineItems"
|
||||
},
|
||||
"layout": {
|
||||
"hLineWidth": "$notFirst:1",
|
||||
"vLineWidth": "$notFirst:.5",
|
||||
"hLineColor": "#FFFFFF",
|
||||
"vLineColor": "#FFFFFF",
|
||||
"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": {
|
||||
"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]
|
||||
{"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": [
|
||||
{
|
||||
"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]
|
||||
}
|
||||
|
@ -1,298 +1,320 @@
|
||||
{
|
||||
"content":[
|
||||
{
|
||||
"columns":[
|
||||
{
|
||||
"image":"$accountLogo",
|
||||
"fit":[
|
||||
120,
|
||||
80
|
||||
]
|
||||
},
|
||||
{
|
||||
"stack":"$accountDetails",
|
||||
"margin":[
|
||||
7,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"stack":"$accountAddress"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"text":"$entityTypeUC",
|
||||
"margin":[
|
||||
8,
|
||||
30,
|
||||
8,
|
||||
5
|
||||
],
|
||||
"style":"entityTypeLabel"
|
||||
},
|
||||
{
|
||||
"table":{
|
||||
"headerRows":1,
|
||||
"widths":[
|
||||
"auto",
|
||||
"auto",
|
||||
"*"
|
||||
],
|
||||
"body":[
|
||||
[
|
||||
{
|
||||
"table":{
|
||||
"body":"$invoiceDetails"
|
||||
},
|
||||
"margin":[
|
||||
0,
|
||||
0,
|
||||
12,
|
||||
0
|
||||
],
|
||||
"layout":"noBorders"
|
||||
},
|
||||
{
|
||||
"stack":"$clientDetails"
|
||||
},
|
||||
{
|
||||
"text":""
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"layout":{
|
||||
"hLineWidth":"$firstAndLast:.5",
|
||||
"vLineWidth":"$none",
|
||||
"hLineColor":"#D8D8D8",
|
||||
"paddingLeft":"$amount:8",
|
||||
"paddingRight":"$amount:8",
|
||||
"paddingTop":"$amount:6",
|
||||
"paddingBottom":"$amount:6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"style":"invoiceLineItemsTable",
|
||||
"table":{
|
||||
"headerRows":1,
|
||||
"widths":"$invoiceLineItemColumns",
|
||||
"body":"$invoiceLineItems"
|
||||
},
|
||||
"layout":{
|
||||
"hLineWidth":"$notFirst:.5",
|
||||
"vLineWidth":"$none",
|
||||
"hLineColor":"#D8D8D8",
|
||||
"paddingLeft":"$amount:8",
|
||||
"paddingRight":"$amount:8",
|
||||
"paddingTop":"$amount:14",
|
||||
"paddingBottom":"$amount:14"
|
||||
}
|
||||
},
|
||||
{
|
||||
"columns":[
|
||||
"$notesAndTerms",
|
||||
{
|
||||
"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":{
|
||||
"font":"$bodyFont",
|
||||
"fontSize":"$fontSize",
|
||||
"margin":[
|
||||
8,
|
||||
4,
|
||||
8,
|
||||
4
|
||||
]
|
||||
},
|
||||
"footer":{
|
||||
"columns":[
|
||||
{
|
||||
"text":"$invoiceFooter",
|
||||
"alignment":"left"
|
||||
}
|
||||
],
|
||||
"margin":[
|
||||
40,
|
||||
-20,
|
||||
40,
|
||||
0
|
||||
]
|
||||
},
|
||||
"styles":{
|
||||
"entityTypeLabel":{
|
||||
"font":"$headerFont",
|
||||
"fontSize":"$fontSizeLargest",
|
||||
"color":"$primaryColor:#37a3c6"
|
||||
},
|
||||
"primaryColor":{
|
||||
"color":"$primaryColor:#37a3c6"
|
||||
},
|
||||
"accountName":{
|
||||
"color":"$primaryColor:#37a3c6",
|
||||
"bold":true
|
||||
},
|
||||
"invoiceDetails":{
|
||||
"margin":[
|
||||
0,
|
||||
0,
|
||||
8,
|
||||
0
|
||||
]
|
||||
},
|
||||
"accountDetails":{
|
||||
"margin":[
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
2
|
||||
]
|
||||
},
|
||||
"clientDetails":{
|
||||
"margin":[
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
2
|
||||
]
|
||||
},
|
||||
"notesAndTerms":{
|
||||
"margin":[
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
2
|
||||
]
|
||||
},
|
||||
"accountAddress":{
|
||||
"margin":[
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
2
|
||||
]
|
||||
},
|
||||
"odd":{
|
||||
"fillColor":"#fbfbfb"
|
||||
},
|
||||
"productKey":{
|
||||
"color":"$primaryColor:#37a3c6",
|
||||
"bold":true
|
||||
},
|
||||
"subtotalsBalanceDueLabel":{
|
||||
"fontSize":"$fontSizeLarger"
|
||||
},
|
||||
"subtotalsBalanceDue":{
|
||||
"fontSize":"$fontSizeLarger",
|
||||
"color":"$primaryColor:#37a3c6"
|
||||
},
|
||||
"invoiceNumber":{
|
||||
"bold":true
|
||||
},
|
||||
"tableHeader":{
|
||||
"bold":true,
|
||||
"fontSize":"$fontSizeLarger"
|
||||
},
|
||||
"costTableHeader":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"qtyTableHeader":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"taxTableHeader":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"lineTotalTableHeader":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"invoiceLineItemsTable":{
|
||||
"margin":[
|
||||
0,
|
||||
16,
|
||||
0,
|
||||
16
|
||||
]
|
||||
},
|
||||
"clientName":{
|
||||
"bold":true
|
||||
},
|
||||
"cost":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"quantity":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"tax":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"lineTotal":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"subtotals":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"termsLabel":{
|
||||
"bold":true
|
||||
},
|
||||
"fullheader":{
|
||||
"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,
|
||||
40,
|
||||
40,
|
||||
60
|
||||
]
|
||||
"content":[
|
||||
{
|
||||
"columns":[
|
||||
{
|
||||
"image":"$accountLogo",
|
||||
"fit":[
|
||||
120,
|
||||
80
|
||||
]
|
||||
},
|
||||
{
|
||||
"stack":"$accountDetails",
|
||||
"margin":[
|
||||
7,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"stack":"$accountAddress"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"text":"$entityTypeUC",
|
||||
"margin":[
|
||||
8,
|
||||
30,
|
||||
8,
|
||||
5
|
||||
],
|
||||
"style":"entityTypeLabel"
|
||||
},
|
||||
{
|
||||
"table":{
|
||||
"headerRows":1,
|
||||
"widths":[
|
||||
"auto",
|
||||
"auto",
|
||||
"*"
|
||||
],
|
||||
"body":[
|
||||
[
|
||||
{
|
||||
"table":{
|
||||
"body":"$invoiceDetails"
|
||||
},
|
||||
"margin":[
|
||||
0,
|
||||
0,
|
||||
12,
|
||||
0
|
||||
],
|
||||
"layout":"noBorders"
|
||||
},
|
||||
{
|
||||
"stack":"$clientDetails"
|
||||
},
|
||||
{
|
||||
"text":""
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"layout":{
|
||||
"hLineWidth":"$firstAndLast:.5",
|
||||
"vLineWidth":"$none",
|
||||
"hLineColor":"#D8D8D8",
|
||||
"paddingLeft":"$amount:8",
|
||||
"paddingRight":"$amount:8",
|
||||
"paddingTop":"$amount:6",
|
||||
"paddingBottom":"$amount:6"
|
||||
}
|
||||
},
|
||||
{
|
||||
"style":"invoiceLineItemsTable",
|
||||
"table":{
|
||||
"headerRows":1,
|
||||
"widths":"$invoiceLineItemColumns",
|
||||
"body":"$invoiceLineItems"
|
||||
},
|
||||
"layout":{
|
||||
"hLineWidth":"$notFirst:.5",
|
||||
"vLineWidth":"$none",
|
||||
"hLineColor":"#D8D8D8",
|
||||
"paddingLeft":"$amount:8",
|
||||
"paddingRight":"$amount:8",
|
||||
"paddingTop":"$amount:14",
|
||||
"paddingBottom":"$amount:14"
|
||||
}
|
||||
},
|
||||
{
|
||||
"columns":[
|
||||
"$notesAndTerms",
|
||||
{
|
||||
"table":{
|
||||
"widths":[
|
||||
"*",
|
||||
"40%"
|
||||
],
|
||||
"body":"$subtotals"
|
||||
},
|
||||
"layout":{
|
||||
"hLineWidth":"$none",
|
||||
"vLineWidth":"$none",
|
||||
"paddingLeft":"$amount:34",
|
||||
"paddingRight":"$amount:8",
|
||||
"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"
|
||||
}
|
||||
],
|
||||
"defaultStyle":{
|
||||
"font":"$bodyFont",
|
||||
"fontSize":"$fontSize",
|
||||
"margin":[
|
||||
8,
|
||||
4,
|
||||
8,
|
||||
4
|
||||
]
|
||||
},
|
||||
"footer":{
|
||||
"columns":[
|
||||
{
|
||||
"text":"$invoiceFooter",
|
||||
"alignment":"left"
|
||||
}
|
||||
],
|
||||
"margin":[
|
||||
40,
|
||||
-20,
|
||||
40,
|
||||
0
|
||||
]
|
||||
},
|
||||
"styles":{
|
||||
"entityTypeLabel":{
|
||||
"font":"$headerFont",
|
||||
"fontSize":"$fontSizeLargest",
|
||||
"color":"$primaryColor:#37a3c6"
|
||||
},
|
||||
"primaryColor":{
|
||||
"color":"$primaryColor:#37a3c6"
|
||||
},
|
||||
"accountName":{
|
||||
"color":"$primaryColor:#37a3c6",
|
||||
"bold":true
|
||||
},
|
||||
"invoiceDetails":{
|
||||
"margin":[
|
||||
0,
|
||||
0,
|
||||
8,
|
||||
0
|
||||
]
|
||||
},
|
||||
"accountDetails":{
|
||||
"margin":[
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
2
|
||||
]
|
||||
},
|
||||
"clientDetails":{
|
||||
"margin":[
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
2
|
||||
]
|
||||
},
|
||||
"notesAndTerms":{
|
||||
"margin":[
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
2
|
||||
]
|
||||
},
|
||||
"accountAddress":{
|
||||
"margin":[
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
2
|
||||
]
|
||||
},
|
||||
"odd":{
|
||||
"fillColor":"#fbfbfb"
|
||||
},
|
||||
"productKey":{
|
||||
"color":"$primaryColor:#37a3c6",
|
||||
"bold":true
|
||||
},
|
||||
"subtotalsBalanceDueLabel":{
|
||||
"fontSize":"$fontSizeLarger"
|
||||
},
|
||||
"subtotalsBalanceDue":{
|
||||
"fontSize":"$fontSizeLarger",
|
||||
"color":"$primaryColor:#37a3c6"
|
||||
},
|
||||
"invoiceNumber":{
|
||||
"bold":true
|
||||
},
|
||||
"tableHeader":{
|
||||
"bold":true,
|
||||
"fontSize":"$fontSizeLarger"
|
||||
},
|
||||
"costTableHeader":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"qtyTableHeader":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"taxTableHeader":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"lineTotalTableHeader":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"invoiceLineItemsTable":{
|
||||
"margin":[
|
||||
0,
|
||||
16,
|
||||
0,
|
||||
16
|
||||
]
|
||||
},
|
||||
"clientName":{
|
||||
"bold":true
|
||||
},
|
||||
"cost":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"quantity":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"tax":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"lineTotal":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"subtotals":{
|
||||
"alignment":"right"
|
||||
},
|
||||
"termsLabel":{
|
||||
"bold":true
|
||||
},
|
||||
"fullheader":{
|
||||
"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,
|
||||
40,
|
||||
40,
|
||||
60
|
||||
]
|
||||
}
|
||||
|
@ -1,221 +1,243 @@
|
||||
{
|
||||
"content": [
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"stack": "$clientDetails"
|
||||
},
|
||||
{
|
||||
"stack": "$accountDetails"
|
||||
},
|
||||
{
|
||||
"stack": "$accountAddress"
|
||||
},
|
||||
{
|
||||
"image": "$accountLogo",
|
||||
"fit": [120, 80],
|
||||
"alignment": "right"
|
||||
}
|
||||
],
|
||||
"margin": [0, 0, 0, 20]
|
||||
},
|
||||
"content": [
|
||||
{
|
||||
"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]
|
||||
}
|
||||
{
|
||||
"stack": "$clientDetails"
|
||||
},
|
||||
{
|
||||
"stack": "$accountDetails"
|
||||
},
|
||||
{
|
||||
"stack": "$accountAddress"
|
||||
},
|
||||
{
|
||||
"image": "$accountLogo",
|
||||
"fit": [120, 80],
|
||||
"alignment": "right"
|
||||
}
|
||||
],
|
||||
"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"}]},
|
||||
{
|
||||
"style": "invoiceLineItemsTable",
|
||||
"table": {
|
||||
"headerRows": 1,
|
||||
"widths": "$invoiceLineItemColumns",
|
||||
"body": "$invoiceLineItems"
|
||||
},
|
||||
"layout": {
|
||||
"hLineWidth": "$none",
|
||||
"vLineWidth": "$none",
|
||||
"hLineColor": "$primaryColor:#E8E8E8",
|
||||
"paddingLeft": "$amount:8",
|
||||
"paddingRight": "$amount:8",
|
||||
"paddingTop": "$amount:8",
|
||||
"paddingBottom": "$amount:8"
|
||||
}
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"$notesAndTerms",
|
||||
{
|
||||
"style": "subtotals",
|
||||
"table": {
|
||||
"widths": ["*", "40%"],
|
||||
"body": "$subtotalsWithoutBalance"
|
||||
},
|
||||
"layout": {
|
||||
"hLineWidth": "$none",
|
||||
"vLineWidth": "$none",
|
||||
"paddingLeft": "$amount:34",
|
||||
"paddingRight": "$amount:8",
|
||||
"paddingTop": "$amount:4",
|
||||
"paddingBottom": "$amount:4"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"style": "invoiceLineItemsTable",
|
||||
"table": {
|
||||
"headerRows": 1,
|
||||
"widths": "$invoiceLineItemColumns",
|
||||
"body": "$invoiceLineItems"
|
||||
},
|
||||
"layout": {
|
||||
"hLineWidth": "$none",
|
||||
"vLineWidth": "$none",
|
||||
"hLineColor": "$primaryColor:#E8E8E8",
|
||||
"paddingLeft": "$amount:8",
|
||||
"paddingRight": "$amount:8",
|
||||
"paddingTop": "$amount:8",
|
||||
"paddingBottom": "$amount:8"
|
||||
}
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"$notesAndTerms",
|
||||
{
|
||||
"style": "subtotals",
|
||||
"table": {
|
||||
"widths": ["*", "40%"],
|
||||
"body": "$subtotalsWithoutBalance"
|
||||
},
|
||||
"layout": {
|
||||
"hLineWidth": "$none",
|
||||
"vLineWidth": "$none",
|
||||
"paddingLeft": "$amount:34",
|
||||
"paddingRight": "$amount:8",
|
||||
"paddingTop": "$amount:4",
|
||||
"paddingBottom": "$amount:4"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"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",
|
||||
"style": "subtotalsBalanceDueLabel"
|
||||
},
|
||||
{
|
||||
"text": "$balanceDue",
|
||||
"style": "subtotalsBalanceDue"
|
||||
},
|
||||
{
|
||||
"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:#AE1E54"
|
||||
},
|
||||
"accountName": {
|
||||
"margin": [4, 2, 4, 2],
|
||||
"color": "$primaryColor:#AE1E54",
|
||||
"bold": true
|
||||
},
|
||||
"accountDetails": {
|
||||
"margin": [4, 2, 4, 2]
|
||||
},
|
||||
"accountAddress": {
|
||||
"margin": [4, 2, 4, 2]
|
||||
},
|
||||
"odd": {
|
||||
"fillColor":"#F4F4F4"
|
||||
},
|
||||
"productKey": {
|
||||
"bold": true
|
||||
},
|
||||
"subtotalsBalanceDueLabel": {
|
||||
"fontSize": "$fontSizeLargest",
|
||||
"margin": [320,20,0,0]
|
||||
},
|
||||
"subtotalsBalanceDue": {
|
||||
"fontSize": "$fontSizeLargest",
|
||||
"color": "$primaryColor:#AE1E54",
|
||||
"bold": true,
|
||||
"margin":[0,-10,10,0],
|
||||
"alignment": "right"
|
||||
},
|
||||
"invoiceDetailBalanceDue": {
|
||||
"bold": true,
|
||||
"color": "$primaryColor:#AE1E54"
|
||||
},
|
||||
"invoiceDetailBalanceDueLabel": {
|
||||
"bold": true
|
||||
},
|
||||
"tableHeader": {
|
||||
"bold": true,
|
||||
"color": "$primaryColor:#AE1E54",
|
||||
"fontSize": "$fontSizeLargest"
|
||||
},
|
||||
"costTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"qtyTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"taxTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"lineTotalTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"clientName": {
|
||||
"bold": true
|
||||
},
|
||||
"clientDetails": {
|
||||
"margin": [0,2,0,1]
|
||||
},
|
||||
"header1": {
|
||||
"bold": true,
|
||||
"margin": [0, 30, 0, 16],
|
||||
"fontSize": 42
|
||||
},
|
||||
"header2": {
|
||||
"margin": [0, 30, 0, 16],
|
||||
"fontSize": 42,
|
||||
"italics": true,
|
||||
"color": "$primaryColor:#AE1E54"
|
||||
},
|
||||
"invoiceLineItemsTable": {
|
||||
"margin": [0, 4, 0, 16]
|
||||
},
|
||||
"cost": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"quantity": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"tax": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"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]
|
||||
{
|
||||
"text": "$balanceDueLabel",
|
||||
"style": "subtotalsBalanceDueLabel"
|
||||
},
|
||||
{
|
||||
"text": "$balanceDue",
|
||||
"style": "subtotalsBalanceDue"
|
||||
},
|
||||
{
|
||||
"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:#AE1E54"
|
||||
},
|
||||
"accountName": {
|
||||
"margin": [4, 2, 4, 2],
|
||||
"color": "$primaryColor:#AE1E54",
|
||||
"bold": true
|
||||
},
|
||||
"accountDetails": {
|
||||
"margin": [4, 2, 4, 2]
|
||||
},
|
||||
"accountAddress": {
|
||||
"margin": [4, 2, 4, 2]
|
||||
},
|
||||
"odd": {
|
||||
"fillColor":"#F4F4F4"
|
||||
},
|
||||
"productKey": {
|
||||
"bold": true
|
||||
},
|
||||
"subtotalsBalanceDueLabel": {
|
||||
"fontSize": "$fontSizeLargest",
|
||||
"margin": [320,20,0,0]
|
||||
},
|
||||
"subtotalsBalanceDue": {
|
||||
"fontSize": "$fontSizeLargest",
|
||||
"color": "$primaryColor:#AE1E54",
|
||||
"bold": true,
|
||||
"margin":[0,-10,10,0],
|
||||
"alignment": "right"
|
||||
},
|
||||
"invoiceDetailBalanceDue": {
|
||||
"bold": true,
|
||||
"color": "$primaryColor:#AE1E54"
|
||||
},
|
||||
"invoiceDetailBalanceDueLabel": {
|
||||
"bold": true
|
||||
},
|
||||
"tableHeader": {
|
||||
"bold": true,
|
||||
"color": "$primaryColor:#AE1E54",
|
||||
"fontSize": "$fontSizeLargest"
|
||||
},
|
||||
"costTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"qtyTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"taxTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"lineTotalTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"clientName": {
|
||||
"bold": true
|
||||
},
|
||||
"clientDetails": {
|
||||
"margin": [0,2,0,1]
|
||||
},
|
||||
"header1": {
|
||||
"bold": true,
|
||||
"margin": [0, 30, 0, 16],
|
||||
"fontSize": 42
|
||||
},
|
||||
"header2": {
|
||||
"margin": [0, 30, 0, 16],
|
||||
"fontSize": 42,
|
||||
"italics": true,
|
||||
"color": "$primaryColor:#AE1E54"
|
||||
},
|
||||
"invoiceLineItemsTable": {
|
||||
"margin": [0, 4, 0, 16]
|
||||
},
|
||||
"cost": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"quantity": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"tax": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"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]
|
||||
}
|
||||
|
@ -1,216 +1,238 @@
|
||||
{
|
||||
"content": [
|
||||
{
|
||||
"image": "$accountLogo",
|
||||
"fit": [120, 80],
|
||||
"alignment": "center",
|
||||
"margin": [0, 0, 0, 30]
|
||||
},
|
||||
{"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}]},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"width": 120,
|
||||
"stack": [
|
||||
{"text": "$invoiceToLabel", "style": "header", "margin": [0, 0, 0, 6]},
|
||||
"$clientDetails"
|
||||
]
|
||||
},
|
||||
{
|
||||
"width": 10,
|
||||
"canvas": [{ "type": "line", "x1": -2, "y1": 18, "x2": -2, "y2": 80, "lineWidth": 1,"dash": { "length": 2 }}]
|
||||
},
|
||||
{
|
||||
"width": 120,
|
||||
"stack": "$accountDetails",
|
||||
"margin": [0, 20, 0, 0]
|
||||
},
|
||||
{
|
||||
"width": 110,
|
||||
"stack": "$accountAddress",
|
||||
"margin": [0, 20, 0, 0]
|
||||
},
|
||||
{
|
||||
"stack": [
|
||||
{"text": "$detailsLabel", "style": "header", "margin": [0, 0, 0, 6]},
|
||||
{
|
||||
"width":180,
|
||||
"table": {
|
||||
"body": "$invoiceDetails"
|
||||
},
|
||||
"layout": "noBorders"
|
||||
}
|
||||
]
|
||||
}],
|
||||
"margin": [0, 20, 0, 0]
|
||||
},
|
||||
{
|
||||
"style": "invoiceLineItemsTable",
|
||||
"table": {
|
||||
"headerRows": 1,
|
||||
"widths": "$invoiceLineItemColumns",
|
||||
"body": "$invoiceLineItems"
|
||||
},
|
||||
"layout": {
|
||||
"hLineWidth": "$notFirst:.5",
|
||||
"vLineWidth": "$none",
|
||||
"paddingLeft": "$amount:8",
|
||||
"paddingRight": "$amount:8",
|
||||
"paddingTop": "$amount:12",
|
||||
"paddingBottom": "$amount:12"
|
||||
}
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"$notesAndTerms",
|
||||
{
|
||||
"style": "subtotals",
|
||||
"table": {
|
||||
"widths": ["*", "40%"],
|
||||
"body": "$subtotalsWithoutBalance"
|
||||
},
|
||||
"layout": {
|
||||
"hLineWidth": "$none",
|
||||
"vLineWidth": "$none",
|
||||
"paddingLeft": "$amount:34",
|
||||
"paddingRight": "$amount:8",
|
||||
"paddingTop": "$amount:4",
|
||||
"paddingBottom": "$amount:4"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"canvas": [{ "type": "line", "x1": 270, "y1": 20, "x2": 515, "y2": 20, "lineWidth": 1,"dash": { "length": 2 }}]
|
||||
},
|
||||
{
|
||||
"text": "$balanceDueLabel",
|
||||
"style": "subtotalsBalanceDueLabel"
|
||||
},
|
||||
{
|
||||
"text": "$balanceDue",
|
||||
"style": "subtotalsBalanceDue"
|
||||
},
|
||||
{
|
||||
"canvas": [{ "type": "line", "x1": 270, "y1": 20, "x2": 515, "y2": 20, "lineWidth": 1,"dash": { "length": 2 }}]
|
||||
},
|
||||
{
|
||||
"stack": [
|
||||
"$invoiceDocuments"
|
||||
],
|
||||
"style": "invoiceDocuments"
|
||||
}],
|
||||
"footer": [
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"text": "$invoiceFooter",
|
||||
"alignment": "left"
|
||||
}
|
||||
],
|
||||
"margin": [40, -20, 40, 0]
|
||||
},
|
||||
{"canvas": [{ "type": "line", "x1": 35, "y1": 5, "x2": 555, "y2": 5, "lineWidth": 2,"margin": [30,0,0,0]}]},
|
||||
{"canvas": [{ "type": "line", "x1": 35, "y1": 3, "x2": 555, "y2": 3, "lineWidth": 1,"margin": [30,0,0,0]}]}
|
||||
],
|
||||
"defaultStyle": {
|
||||
"fontSize": "$fontSize",
|
||||
"margin": [8, 4, 8, 4]
|
||||
},
|
||||
"styles": {
|
||||
"accountDetails": {
|
||||
"margin": [0, 2, 0, 1]
|
||||
},
|
||||
"clientDetails": {
|
||||
"margin": [0, 2, 0, 1]
|
||||
},
|
||||
"accountAddress": {
|
||||
"margin": [0, 2, 0, 1]
|
||||
},
|
||||
"clientName": {
|
||||
"bold": true
|
||||
},
|
||||
"accountName": {
|
||||
"bold": true
|
||||
},
|
||||
"odd": {
|
||||
},
|
||||
"subtotalsBalanceDueLabel": {
|
||||
"fontSize": "$fontSizeLargest",
|
||||
"color": "$primaryColor:#5a7b61",
|
||||
"margin": [320,20,0,0]
|
||||
},
|
||||
"subtotalsBalanceDue": {
|
||||
"fontSize": "$fontSizeLargest",
|
||||
"color": "$primaryColor:#5a7b61",
|
||||
"style": true,
|
||||
"margin":[0,-14,8,0],
|
||||
"alignment":"right"
|
||||
},
|
||||
"invoiceDetailBalanceDue": {
|
||||
"color": "$primaryColor:#5a7b61",
|
||||
"bold": true
|
||||
},
|
||||
"fullheader": {
|
||||
"font": "$headerFont",
|
||||
"fontSize": "$fontSizeLargest",
|
||||
"bold": true
|
||||
},
|
||||
"header": {
|
||||
"fontSize": 14,
|
||||
"bold": true
|
||||
},
|
||||
"tableHeader": {
|
||||
"bold": true,
|
||||
"color": "$primaryColor:#5a7b61",
|
||||
"fontSize": "$fontSizeLargest"
|
||||
},
|
||||
"costTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"qtyTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"taxTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"lineTotalTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"invoiceLineItemsTable": {
|
||||
"margin": [0, 40, 0, 16]
|
||||
},
|
||||
"cost": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"quantity": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"tax": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"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]
|
||||
"content": [
|
||||
{
|
||||
"image": "$accountLogo",
|
||||
"fit": [120, 80],
|
||||
"alignment": "center",
|
||||
"margin": [0, 0, 0, 30]
|
||||
},
|
||||
{"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}]},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"width": 120,
|
||||
"stack": [
|
||||
{"text": "$invoiceToLabel", "style": "header", "margin": [0, 0, 0, 6]},
|
||||
"$clientDetails"
|
||||
]
|
||||
},
|
||||
{
|
||||
"width": 10,
|
||||
"canvas": [{ "type": "line", "x1": -2, "y1": 18, "x2": -2, "y2": 80, "lineWidth": 1,"dash": { "length": 2 }}]
|
||||
},
|
||||
{
|
||||
"width": 120,
|
||||
"stack": "$accountDetails",
|
||||
"margin": [0, 20, 0, 0]
|
||||
},
|
||||
{
|
||||
"width": 110,
|
||||
"stack": "$accountAddress",
|
||||
"margin": [0, 20, 0, 0]
|
||||
},
|
||||
{
|
||||
"stack": [
|
||||
{"text": "$detailsLabel", "style": "header", "margin": [0, 0, 0, 6]},
|
||||
{
|
||||
"width":180,
|
||||
"table": {
|
||||
"body": "$invoiceDetails"
|
||||
},
|
||||
"layout": "noBorders"
|
||||
}
|
||||
]
|
||||
}],
|
||||
"margin": [0, 20, 0, 0]
|
||||
},
|
||||
{
|
||||
"style": "invoiceLineItemsTable",
|
||||
"table": {
|
||||
"headerRows": 1,
|
||||
"widths": "$invoiceLineItemColumns",
|
||||
"body": "$invoiceLineItems"
|
||||
},
|
||||
"layout": {
|
||||
"hLineWidth": "$notFirst:.5",
|
||||
"vLineWidth": "$none",
|
||||
"paddingLeft": "$amount:8",
|
||||
"paddingRight": "$amount:8",
|
||||
"paddingTop": "$amount:12",
|
||||
"paddingBottom": "$amount:12"
|
||||
}
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"$notesAndTerms",
|
||||
{
|
||||
"style": "subtotals",
|
||||
"table": {
|
||||
"widths": ["*", "40%"],
|
||||
"body": "$subtotalsWithoutBalance"
|
||||
},
|
||||
"layout": {
|
||||
"hLineWidth": "$none",
|
||||
"vLineWidth": "$none",
|
||||
"paddingLeft": "$amount:34",
|
||||
"paddingRight": "$amount:8",
|
||||
"paddingTop": "$amount:4",
|
||||
"paddingBottom": "$amount:4"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"canvas": [{ "type": "line", "x1": 270, "y1": 20, "x2": 515, "y2": 20, "lineWidth": 1,"dash": { "length": 2 }}]
|
||||
},
|
||||
{
|
||||
"text": "$balanceDueLabel",
|
||||
"style": "subtotalsBalanceDueLabel"
|
||||
},
|
||||
{
|
||||
"text": "$balanceDue",
|
||||
"style": "subtotalsBalanceDue"
|
||||
},
|
||||
{
|
||||
"canvas": [{ "type": "line", "x1": 270, "y1": 20, "x2": 515, "y2": 20, "lineWidth": 1,"dash": { "length": 2 }}]
|
||||
},
|
||||
{
|
||||
"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]
|
||||
},
|
||||
{"canvas": [{ "type": "line", "x1": 35, "y1": 5, "x2": 555, "y2": 5, "lineWidth": 2,"margin": [30,0,0,0]}]},
|
||||
{"canvas": [{ "type": "line", "x1": 35, "y1": 3, "x2": 555, "y2": 3, "lineWidth": 1,"margin": [30,0,0,0]}]}
|
||||
],
|
||||
"defaultStyle": {
|
||||
"fontSize": "$fontSize",
|
||||
"margin": [8, 4, 8, 4]
|
||||
},
|
||||
"styles": {
|
||||
"accountDetails": {
|
||||
"margin": [0, 2, 0, 1]
|
||||
},
|
||||
"clientDetails": {
|
||||
"margin": [0, 2, 0, 1]
|
||||
},
|
||||
"accountAddress": {
|
||||
"margin": [0, 2, 0, 1]
|
||||
},
|
||||
"clientName": {
|
||||
"bold": true
|
||||
},
|
||||
"accountName": {
|
||||
"bold": true
|
||||
},
|
||||
"odd": {
|
||||
},
|
||||
"subtotalsBalanceDueLabel": {
|
||||
"fontSize": "$fontSizeLargest",
|
||||
"color": "$primaryColor:#5a7b61",
|
||||
"margin": [320,20,0,0]
|
||||
},
|
||||
"subtotalsBalanceDue": {
|
||||
"fontSize": "$fontSizeLargest",
|
||||
"color": "$primaryColor:#5a7b61",
|
||||
"style": true,
|
||||
"margin":[0,-14,8,0],
|
||||
"alignment":"right"
|
||||
},
|
||||
"invoiceDetailBalanceDue": {
|
||||
"color": "$primaryColor:#5a7b61",
|
||||
"bold": true
|
||||
},
|
||||
"fullheader": {
|
||||
"font": "$headerFont",
|
||||
"fontSize": "$fontSizeLargest",
|
||||
"bold": true
|
||||
},
|
||||
"header": {
|
||||
"fontSize": 14,
|
||||
"bold": true
|
||||
},
|
||||
"tableHeader": {
|
||||
"bold": true,
|
||||
"color": "$primaryColor:#5a7b61",
|
||||
"fontSize": "$fontSizeLargest"
|
||||
},
|
||||
"costTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"qtyTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"taxTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"lineTotalTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"invoiceLineItemsTable": {
|
||||
"margin": [0, 40, 0, 16]
|
||||
},
|
||||
"cost": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"quantity": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"tax": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"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]
|
||||
}
|
||||
|
@ -1,218 +1,240 @@
|
||||
{
|
||||
"content": [
|
||||
{
|
||||
"columns": [
|
||||
"content": [
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"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,
|
||||
"stack": [
|
||||
{"text": "$fromLabelUC", "style": "fromLabel"},
|
||||
"$accountDetails"
|
||||
]
|
||||
},
|
||||
{
|
||||
"stack": [
|
||||
{"text": "$fromLabelUC", "style": "fromLabel"},
|
||||
"$accountDetails"
|
||||
]
|
||||
},
|
||||
{
|
||||
"width":120,
|
||||
"stack": [
|
||||
{"text": " "},
|
||||
"$accountAddress"
|
||||
],
|
||||
"stack": [
|
||||
{"text": " "},
|
||||
"$accountAddress"
|
||||
],
|
||||
"margin": [10, 0, 0, 16]
|
||||
},
|
||||
},
|
||||
{
|
||||
"width":10,
|
||||
"canvas": [{ "type": "line", "x1": 0, "y1": 0, "x2": 0, "y2": 75, "lineWidth": 0.5}]
|
||||
},
|
||||
{
|
||||
"stack": [
|
||||
{"text": "$toLabelUC", "style": "toLabel"},
|
||||
"$clientDetails"
|
||||
]
|
||||
{"text": "$toLabelUC", "style": "toLabel"},
|
||||
"$clientDetails"
|
||||
]
|
||||
},
|
||||
[
|
||||
{
|
||||
"image": "$accountLogo",
|
||||
"fit": [120, 80]
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"text": "$entityTypeUC",
|
||||
"margin": [0, 4, 0, 8],
|
||||
"bold": "true",
|
||||
"fontSize": 42
|
||||
},
|
||||
{
|
||||
"image": "$accountLogo",
|
||||
"fit": [120, 80]
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"columnGap": 16,
|
||||
"text": "$entityTypeUC",
|
||||
"margin": [0, 4, 0, 8],
|
||||
"bold": "true",
|
||||
"fontSize": 42
|
||||
},
|
||||
{
|
||||
"columnGap": 16,
|
||||
"columns": [
|
||||
{
|
||||
"width":"auto",
|
||||
"text": ["$invoiceNoLabel"," ","$invoiceNumberValue"],
|
||||
"bold": true,
|
||||
"color":"$primaryColor:#bc9f2b",
|
||||
"fontSize":10
|
||||
},
|
||||
{
|
||||
"width":"auto",
|
||||
"text": ["$invoiceDateLabel"," ","$invoiceDateValue"],
|
||||
"fontSize":10
|
||||
},
|
||||
{
|
||||
"width":"auto",
|
||||
"text": ["$dueDateLabel?"," ","$dueDateValue"],
|
||||
"fontSize":10
|
||||
},
|
||||
{
|
||||
"width":"*",
|
||||
"text": ["$balanceDueLabel"," ",{"text":"$balanceDue", "bold":true, "color":"$primaryColor:#bc9f2b"}],
|
||||
"fontSize":10
|
||||
}
|
||||
{
|
||||
"width":"auto",
|
||||
"text": ["$invoiceNoLabel"," ","$invoiceNumberValue"],
|
||||
"bold": true,
|
||||
"color":"$primaryColor:#bc9f2b",
|
||||
"fontSize":10
|
||||
},
|
||||
{
|
||||
"width":"auto",
|
||||
"text": ["$invoiceDateLabel"," ","$invoiceDateValue"],
|
||||
"fontSize":10
|
||||
},
|
||||
{
|
||||
"width":"auto",
|
||||
"text": ["$dueDateLabel?"," ","$dueDateValue"],
|
||||
"fontSize":10
|
||||
},
|
||||
{
|
||||
"width":"*",
|
||||
"text": ["$balanceDueLabel"," ",{"text":"$balanceDue", "bold":true, "color":"$primaryColor:#bc9f2b"}],
|
||||
"fontSize":10
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
{
|
||||
"margin": [0, 26, 0, 0],
|
||||
"style": "invoiceLineItemsTable",
|
||||
"table": {
|
||||
"headerRows": 1,
|
||||
"widths": "$invoiceLineItemColumns",
|
||||
"body": "$invoiceLineItems"
|
||||
},
|
||||
"layout": {
|
||||
"hLineWidth": "$none",
|
||||
"vLineWidth": "$amount:.5",
|
||||
"paddingLeft": "$amount:8",
|
||||
"paddingRight": "$amount:8",
|
||||
"paddingTop": "$amount:8",
|
||||
"paddingBottom": "$amount:8"
|
||||
}
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"stack": "$notesAndTerms",
|
||||
"width": "*",
|
||||
"margin": [0, 12, 0, 0]
|
||||
},
|
||||
{
|
||||
"width": 200,
|
||||
"style": "subtotals",
|
||||
"table": {
|
||||
"widths": ["*", "36%"],
|
||||
"body": "$subtotals"
|
||||
},
|
||||
"layout": {
|
||||
"hLineWidth": "$none",
|
||||
"vLineWidth": "$notFirst:.5",
|
||||
"paddingLeft": "$amount:8",
|
||||
"paddingRight": "$amount:8",
|
||||
"paddingTop": "$amount:12",
|
||||
"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": {
|
||||
"accountName": {
|
||||
"bold": true
|
||||
},
|
||||
"clientName": {
|
||||
"bold": true
|
||||
},
|
||||
"subtotalsBalanceDueLabel": {
|
||||
"fontSize": "$fontSizeLargest",
|
||||
"bold": true
|
||||
},
|
||||
"subtotalsBalanceDue": {
|
||||
"fontSize": "$fontSizeLargest",
|
||||
"color": "$primaryColor:#bc9f2b",
|
||||
"bold": true
|
||||
},
|
||||
"tableHeader": {
|
||||
"bold": true,
|
||||
"fontSize": "$fontSizeLargest"
|
||||
},
|
||||
"costTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"qtyTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"taxTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"lineTotalTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"fromLabel": {
|
||||
"color": "$primaryColor:#bc9f2b",
|
||||
"bold": true
|
||||
},
|
||||
"toLabel": {
|
||||
"color": "$primaryColor:#bc9f2b",
|
||||
"bold": true
|
||||
},
|
||||
"accountDetails": {
|
||||
"margin": [0, 2, 0, 1]
|
||||
},
|
||||
"accountAddress": {
|
||||
"margin": [0, 2, 0, 1]
|
||||
},
|
||||
"clientDetails": {
|
||||
"margin": [0, 2, 0, 1]
|
||||
},
|
||||
"cost": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"quantity": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"tax": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"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]
|
||||
"style": "invoiceLineItemsTable",
|
||||
"table": {
|
||||
"headerRows": 1,
|
||||
"widths": "$invoiceLineItemColumns",
|
||||
"body": "$invoiceLineItems"
|
||||
},
|
||||
"layout": {
|
||||
"hLineWidth": "$none",
|
||||
"vLineWidth": "$amount:.5",
|
||||
"paddingLeft": "$amount:8",
|
||||
"paddingRight": "$amount:8",
|
||||
"paddingTop": "$amount:8",
|
||||
"paddingBottom": "$amount:8"
|
||||
}
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"stack": "$notesAndTerms",
|
||||
"width": "*",
|
||||
"margin": [0, 12, 0, 0]
|
||||
},
|
||||
{
|
||||
"width": 200,
|
||||
"style": "subtotals",
|
||||
"table": {
|
||||
"widths": ["*", "36%"],
|
||||
"body": "$subtotals"
|
||||
},
|
||||
"layout": {
|
||||
"hLineWidth": "$none",
|
||||
"vLineWidth": "$notFirst:.5",
|
||||
"paddingLeft": "$amount:8",
|
||||
"paddingRight": "$amount:8",
|
||||
"paddingTop": "$amount:12",
|
||||
"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": {
|
||||
"accountName": {
|
||||
"bold": true
|
||||
},
|
||||
"clientName": {
|
||||
"bold": true
|
||||
},
|
||||
"subtotalsBalanceDueLabel": {
|
||||
"fontSize": "$fontSizeLargest",
|
||||
"bold": true
|
||||
},
|
||||
"subtotalsBalanceDue": {
|
||||
"fontSize": "$fontSizeLargest",
|
||||
"color": "$primaryColor:#bc9f2b",
|
||||
"bold": true
|
||||
},
|
||||
"tableHeader": {
|
||||
"bold": true,
|
||||
"fontSize": "$fontSizeLargest"
|
||||
},
|
||||
"costTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"qtyTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"taxTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"lineTotalTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"fromLabel": {
|
||||
"color": "$primaryColor:#bc9f2b",
|
||||
"bold": true
|
||||
},
|
||||
"toLabel": {
|
||||
"color": "$primaryColor:#bc9f2b",
|
||||
"bold": true
|
||||
},
|
||||
"accountDetails": {
|
||||
"margin": [0, 2, 0, 1]
|
||||
},
|
||||
"accountAddress": {
|
||||
"margin": [0, 2, 0, 1]
|
||||
},
|
||||
"clientDetails": {
|
||||
"margin": [0, 2, 0, 1]
|
||||
},
|
||||
"cost": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"quantity": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"tax": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"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]
|
||||
}
|
||||
|
@ -1,263 +1,285 @@
|
||||
{
|
||||
"content": [
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"image": "$accountLogo",
|
||||
"fit": [120, 80],
|
||||
"margin": [0, 60, 0, 30]
|
||||
},
|
||||
{
|
||||
"stack": "$clientDetails",
|
||||
"margin": [0, 60, 0, 0]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"style": "invoiceLineItemsTable",
|
||||
"table": {
|
||||
"headerRows": 1,
|
||||
"widths": "$invoiceLineItemColumns",
|
||||
"body": "$invoiceLineItems"
|
||||
},
|
||||
"layout": {
|
||||
"hLineWidth": "$notFirst:.5",
|
||||
"vLineWidth": "$notFirstAndLastColumn:.5",
|
||||
"hLineColor": "#888888",
|
||||
"vLineColor": "#FFFFFF",
|
||||
"paddingLeft": "$amount:8",
|
||||
"paddingRight": "$amount:8",
|
||||
"paddingTop": "$amount:8",
|
||||
"paddingBottom": "$amount:8"
|
||||
}
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"$notesAndTerms",
|
||||
{
|
||||
"table": {
|
||||
"widths": ["*", "40%"],
|
||||
"body": "$subtotalsWithoutBalance"
|
||||
},
|
||||
"layout": {
|
||||
"hLineWidth": "$none",
|
||||
"vLineWidth": "$none",
|
||||
"paddingLeft": "$amount:34",
|
||||
"paddingRight": "$amount:8",
|
||||
"paddingTop": "$amount:4",
|
||||
"paddingBottom": "$amount:4"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"canvas": [
|
||||
{
|
||||
"type": "rect",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"w": 515,
|
||||
"h": 26,
|
||||
"r": 0,
|
||||
"lineWidth": 1,
|
||||
"color": "$secondaryColor:#403d3d"
|
||||
}
|
||||
],
|
||||
"width": 10,
|
||||
"margin": [
|
||||
0,
|
||||
10,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"text": "$balanceDueLabel",
|
||||
"style": "subtotalsBalanceDueLabel",
|
||||
"margin": [0, 16, 0, 0],
|
||||
"width": 370
|
||||
},
|
||||
{
|
||||
"text": "$balanceDue",
|
||||
"style": "subtotalsBalanceDue",
|
||||
"margin": [0, 16, 8, 0]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"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": "$invoiceFooter",
|
||||
"margin": [40, -40, 40, 0],
|
||||
"alignment": "left",
|
||||
"color": "#FFFFFF"
|
||||
"content": [
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"image": "$accountLogo",
|
||||
"fit": [120, 80],
|
||||
"margin": [0, 60, 0, 30]
|
||||
},
|
||||
{
|
||||
"stack": "$clientDetails",
|
||||
"margin": [0, 60, 0, 0]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"style": "invoiceLineItemsTable",
|
||||
"table": {
|
||||
"headerRows": 1,
|
||||
"widths": "$invoiceLineItemColumns",
|
||||
"body": "$invoiceLineItems"
|
||||
},
|
||||
"layout": {
|
||||
"hLineWidth": "$notFirst:.5",
|
||||
"vLineWidth": "$notFirstAndLastColumn:.5",
|
||||
"hLineColor": "#888888",
|
||||
"vLineColor": "#FFFFFF",
|
||||
"paddingLeft": "$amount:8",
|
||||
"paddingRight": "$amount:8",
|
||||
"paddingTop": "$amount:8",
|
||||
"paddingBottom": "$amount:8"
|
||||
}
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"$notesAndTerms",
|
||||
{
|
||||
"table": {
|
||||
"widths": ["*", "40%"],
|
||||
"body": "$subtotalsWithoutBalance"
|
||||
},
|
||||
"layout": {
|
||||
"hLineWidth": "$none",
|
||||
"vLineWidth": "$none",
|
||||
"paddingLeft": "$amount:34",
|
||||
"paddingRight": "$amount:8",
|
||||
"paddingTop": "$amount:4",
|
||||
"paddingBottom": "$amount:4"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"canvas": [
|
||||
{
|
||||
"type": "rect",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"w": 515,
|
||||
"h": 26,
|
||||
"r": 0,
|
||||
"lineWidth": 1,
|
||||
"color": "$secondaryColor:#403d3d"
|
||||
}
|
||||
],
|
||||
"width": 10,
|
||||
"margin": [
|
||||
0,
|
||||
10,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"text": "$balanceDueLabel",
|
||||
"style": "subtotalsBalanceDueLabel",
|
||||
"margin": [0, 16, 0, 0],
|
||||
"width": 370
|
||||
},
|
||||
{
|
||||
"text": "$balanceDue",
|
||||
"style": "subtotalsBalanceDue",
|
||||
"margin": [0, 16, 8, 0]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"stack": [
|
||||
{
|
||||
"image": "$signatureBase64",
|
||||
"margin": [
|
||||
200,
|
||||
10,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"text": "$signatureDate",
|
||||
"margin": [
|
||||
200,
|
||||
-40,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"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": "$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": [
|
||||
{
|
||||
"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"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"subtotalsBalanceDueLabel": {
|
||||
"fontSize": "$fontSizeLargest",
|
||||
"color":"#FFFFFF",
|
||||
"alignment":"right",
|
||||
"bold": true
|
||||
},
|
||||
"subtotalsBalanceDue": {
|
||||
"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
|
||||
},
|
||||
"fullheader": {
|
||||
"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]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"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": [
|
||||
{
|
||||
"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"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"subtotalsBalanceDueLabel": {
|
||||
"fontSize": "$fontSizeLargest",
|
||||
"color":"#FFFFFF",
|
||||
"alignment":"right",
|
||||
"bold": true
|
||||
},
|
||||
"subtotalsBalanceDue": {
|
||||
"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
|
||||
},
|
||||
"fullheader": {
|
||||
"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]
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,187 +1,209 @@
|
||||
{
|
||||
"content": [
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"stack": "$accountDetails"
|
||||
},
|
||||
{
|
||||
"stack": "$accountAddress"
|
||||
},
|
||||
[
|
||||
{
|
||||
"image": "$accountLogo",
|
||||
"fit": [120, 80]
|
||||
}
|
||||
]
|
||||
]},
|
||||
"content": [
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"width": 340,
|
||||
"stack": "$clientDetails",
|
||||
"margin": [0,40,0,0]
|
||||
"columns": [
|
||||
{
|
||||
"stack": "$accountDetails"
|
||||
},
|
||||
{
|
||||
"stack": "$accountAddress"
|
||||
},
|
||||
[
|
||||
{
|
||||
"image": "$accountLogo",
|
||||
"fit": [120, 80]
|
||||
}
|
||||
]
|
||||
]},
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"width": 340,
|
||||
"stack": "$clientDetails",
|
||||
"margin": [0,40,0,0]
|
||||
},
|
||||
{
|
||||
"width":200,
|
||||
"table": {
|
||||
"body": "$invoiceDetails"
|
||||
},
|
||||
{
|
||||
"width":200,
|
||||
"table": {
|
||||
"body": "$invoiceDetails"
|
||||
},
|
||||
"layout": {
|
||||
"hLineWidth": "$none",
|
||||
"vLineWidth": "$none",
|
||||
"hLineColor": "#E6E6E6",
|
||||
"paddingLeft": "$amount:10",
|
||||
"paddingRight": "$amount:10"
|
||||
}
|
||||
"layout": {
|
||||
"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]
|
||||
},
|
||||
{
|
||||
"style": "invoiceLineItemsTable",
|
||||
"table": {
|
||||
"headerRows": 1,
|
||||
"widths": "$invoiceLineItemColumns",
|
||||
"body": "$invoiceLineItems"
|
||||
},
|
||||
"layout": {
|
||||
"hLineWidth": "$notFirst:1",
|
||||
"vLineWidth": "$none",
|
||||
"hLineColor": "#e6e6e6",
|
||||
"paddingLeft": "$amount:8",
|
||||
"paddingRight": "$amount:8",
|
||||
"paddingTop": "$amount:8",
|
||||
"paddingBottom": "$amount:8"
|
||||
}
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"$notesAndTerms",
|
||||
{
|
||||
"width": 160,
|
||||
"style": "subtotals",
|
||||
"table": {
|
||||
"widths": [60, 60],
|
||||
"body": "$subtotals"
|
||||
},
|
||||
"layout": {
|
||||
"hLineWidth": "$none",
|
||||
"vLineWidth": "$none",
|
||||
"paddingLeft": "$amount:10",
|
||||
"paddingRight": "$amount:10",
|
||||
"paddingTop": "$amount:4",
|
||||
"paddingBottom": "$amount:4"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"stack": [
|
||||
"$invoiceDocuments"
|
||||
],
|
||||
"style": "invoiceDocuments"
|
||||
}
|
||||
],
|
||||
"footer": {
|
||||
"columns": [
|
||||
{
|
||||
"text": "$invoiceFooter",
|
||||
"alignment": "left",
|
||||
"margin": [0, 0, 0, 12]
|
||||
"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",
|
||||
"table": {
|
||||
"headerRows": 1,
|
||||
"widths": "$invoiceLineItemColumns",
|
||||
"body": "$invoiceLineItems"
|
||||
},
|
||||
"layout": {
|
||||
"hLineWidth": "$notFirst:1",
|
||||
"vLineWidth": "$none",
|
||||
"hLineColor": "#e6e6e6",
|
||||
"paddingLeft": "$amount:8",
|
||||
"paddingRight": "$amount:8",
|
||||
"paddingTop": "$amount:8",
|
||||
"paddingBottom": "$amount:8"
|
||||
}
|
||||
},
|
||||
{
|
||||
"columns": [
|
||||
"$notesAndTerms",
|
||||
{
|
||||
"width": 160,
|
||||
"style": "subtotals",
|
||||
"table": {
|
||||
"widths": [60, 60],
|
||||
"body": "$subtotals"
|
||||
},
|
||||
"layout": {
|
||||
"hLineWidth": "$none",
|
||||
"vLineWidth": "$none",
|
||||
"paddingLeft": "$amount:10",
|
||||
"paddingRight": "$amount:10",
|
||||
"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": [0, 0, 0, 12]
|
||||
|
||||
}
|
||||
],
|
||||
"margin": [40, -20, 40, 40]
|
||||
},
|
||||
"defaultStyle": {
|
||||
"font": "$bodyFont",
|
||||
"fontSize": "$fontSize",
|
||||
"margin": [8, 4, 8, 4]
|
||||
},
|
||||
"styles": {
|
||||
"primaryColor":{
|
||||
"color": "$primaryColor:#299CC2"
|
||||
},
|
||||
"accountDetails": {
|
||||
"margin": [0, 2, 0, 1]
|
||||
},
|
||||
"accountAddress": {
|
||||
"margin": [0, 2, 0, 1]
|
||||
},
|
||||
"clientDetails": {
|
||||
"margin": [0, 2, 0, 1]
|
||||
},
|
||||
"tableHeader": {
|
||||
"bold": true
|
||||
},
|
||||
"costTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"qtyTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"lineTotalTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"invoiceLineItemsTable": {
|
||||
"margin": [0, 16, 0, 16]
|
||||
},
|
||||
"cost": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"quantity": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"tax": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"lineTotal": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"subtotals": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"termsLabel": {
|
||||
"bold": true,
|
||||
"margin": [0, 0, 0, 4]
|
||||
},
|
||||
"terms": {
|
||||
"margin": [0, 0, 20, 0]
|
||||
},
|
||||
"invoiceDetailBalanceDueLabel": {
|
||||
"fillColor": "#e6e6e6"
|
||||
},
|
||||
"invoiceDetailBalanceDue": {
|
||||
"fillColor": "#e6e6e6"
|
||||
},
|
||||
"subtotalsBalanceDueLabel": {
|
||||
"fillColor": "#e6e6e6"
|
||||
},
|
||||
"subtotalsBalanceDue": {
|
||||
"fillColor": "#e6e6e6"
|
||||
},
|
||||
"fullheader": {
|
||||
"font": "$headerFont",
|
||||
"fontSize": "$fontSizeLargest",
|
||||
"bold": true
|
||||
},
|
||||
"subheader": {
|
||||
"font": "$headerFont",
|
||||
"fontSize": "$fontSizeLarger"
|
||||
},
|
||||
"help": {
|
||||
"fontSize": "$fontSizeSmaller",
|
||||
"color": "#737373"
|
||||
},
|
||||
}
|
||||
],
|
||||
"margin": [40, -20, 40, 40]
|
||||
},
|
||||
"defaultStyle": {
|
||||
"font": "$bodyFont",
|
||||
"fontSize": "$fontSize",
|
||||
"margin": [8, 4, 8, 4]
|
||||
},
|
||||
"styles": {
|
||||
"primaryColor":{
|
||||
"color": "$primaryColor:#299CC2"
|
||||
},
|
||||
"accountDetails": {
|
||||
"margin": [0, 2, 0, 1]
|
||||
},
|
||||
"accountAddress": {
|
||||
"margin": [0, 2, 0, 1]
|
||||
},
|
||||
"clientDetails": {
|
||||
"margin": [0, 2, 0, 1]
|
||||
},
|
||||
"tableHeader": {
|
||||
"bold": true
|
||||
},
|
||||
"costTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"qtyTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"lineTotalTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"invoiceLineItemsTable": {
|
||||
"margin": [0, 16, 0, 16]
|
||||
},
|
||||
"cost": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"quantity": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"tax": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"lineTotal": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"subtotals": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"termsLabel": {
|
||||
"bold": true,
|
||||
"margin": [0, 0, 0, 4]
|
||||
},
|
||||
"terms": {
|
||||
"margin": [0, 0, 20, 0]
|
||||
},
|
||||
"invoiceDetailBalanceDueLabel": {
|
||||
"fillColor": "#e6e6e6"
|
||||
},
|
||||
"invoiceDetailBalanceDue": {
|
||||
"fillColor": "#e6e6e6"
|
||||
},
|
||||
"subtotalsBalanceDueLabel": {
|
||||
"fillColor": "#e6e6e6"
|
||||
},
|
||||
"subtotalsBalanceDue": {
|
||||
"fillColor": "#e6e6e6"
|
||||
},
|
||||
"fullheader": {
|
||||
"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, 40, 40, 60]
|
||||
},
|
||||
"pageMargins": [40, 40, 40, 60]
|
||||
}
|
||||
|
@ -1,272 +1,294 @@
|
||||
{
|
||||
"content": [
|
||||
{
|
||||
"columns": [
|
||||
"content": [
|
||||
{
|
||||
"columns": [
|
||||
{
|
||||
"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]},
|
||||
{
|
||||
"width":400,
|
||||
"table": {
|
||||
"body": "$invoiceDetails"
|
||||
},
|
||||
"layout": "noBorders",
|
||||
"table": {
|
||||
"body": "$invoiceDetails"
|
||||
},
|
||||
"layout": "noBorders",
|
||||
"margin": [210, 10, 10, 0]
|
||||
}
|
||||
]
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
"margin": [0, 18, 0, 0],
|
||||
"columnGap": 50,
|
||||
"margin": [0, 18, 0, 0],
|
||||
"columnGap": 50,
|
||||
"columns": [
|
||||
{
|
||||
"width": 212,
|
||||
"stack": [
|
||||
{"text": "$invoiceToLabel:", "style": "toLabel"},
|
||||
{
|
||||
"width": 212,
|
||||
"stack": [
|
||||
{"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"}]}
|
||||
]
|
||||
"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"}]}
|
||||
]
|
||||
},
|
||||
{
|
||||
"width": "*",
|
||||
"stack": [
|
||||
{"text": "$fromLabel:", "style": "fromLabel"},
|
||||
{
|
||||
"width": "*",
|
||||
"stack": [
|
||||
{"text": "$fromLabel:", "style": "fromLabel"},
|
||||
{
|
||||
"canvas": [{ "type": "line", "x1": 0, "y1": 4, "x2": 250, "y2": 4, "lineWidth": 1,"dash": { "length": 3 },"lineColor":"$primaryColor:#009d91"}],
|
||||
"margin": [0, 0, 0, 4]
|
||||
},
|
||||
{"columns":[
|
||||
"$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": "line", "x1": 0, "y1": 4, "x2": 250, "y2": 4, "lineWidth": 1,"dash": { "length": 3 },"lineColor":"$primaryColor:#009d91"}],
|
||||
"margin": [0, 0, 0, 4]
|
||||
},
|
||||
{"columns":[
|
||||
"$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]},
|
||||
{
|
||||
"style": "invoiceLineItemsTable",
|
||||
"table": {
|
||||
"headerRows": 1,
|
||||
"widths": "$invoiceLineItemColumns",
|
||||
"body": "$invoiceLineItems"
|
||||
},
|
||||
"layout": {
|
||||
"hLineWidth": "$notFirst:.5",
|
||||
"vLineWidth": "$none",
|
||||
"hLineColor": "$primaryColor:#009d91",
|
||||
"paddingLeft": "$amount:8",
|
||||
"paddingRight": "$amount:8",
|
||||
"paddingTop": "$amount:8",
|
||||
"paddingBottom": "$amount:8"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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": 76,
|
||||
"y": 20,
|
||||
"w": 182,
|
||||
"h": 30,
|
||||
"r": 4,
|
||||
"lineWidth": 1,
|
||||
"color": "$primaryColor:#009d91"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"style": "subtotalsBalance",
|
||||
"table": {
|
||||
"widths": ["*", "35%"],
|
||||
"body": "$subtotalsBalance"
|
||||
},
|
||||
"layout": {
|
||||
"hLineWidth": "$none",
|
||||
"vLineWidth": "$none",
|
||||
"paddingLeft": "$amount:34",
|
||||
"paddingRight": "$amount:8",
|
||||
"paddingTop": "$amount:4",
|
||||
"paddingBottom": "$amount:4"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"stack": [
|
||||
"$invoiceDocuments"
|
||||
],
|
||||
"style": "invoiceDocuments"
|
||||
}
|
||||
],
|
||||
"footer": [
|
||||
{"canvas": [{ "type": "line", "x1": 0, "y1": 38, "x2": 68, "y2": 38, "lineWidth": 6,"lineColor":"#009d91"}]},
|
||||
{"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"}]},
|
||||
{"canvas": [{ "type": "line", "x1": 333, "y1": 0, "x2": 399, "y2": 0, "lineWidth": 6,"lineColor":"#e60042"}]},
|
||||
{"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"}]},
|
||||
{"canvas": [{ "type": "line", "x1": 532, "y1": 0, "x2": 600, "y2": 0, "lineWidth": 6,"lineColor":"#ac2b50"}]},
|
||||
{
|
||||
"text": "$invoiceFooter",
|
||||
"alignment": "left",
|
||||
"margin": [40, -60, 40, 0]
|
||||
}
|
||||
],
|
||||
"header": [
|
||||
{"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"}]},
|
||||
{"canvas": [{ "type": "line", "x1": 135, "y1": 0, "x2": 201, "y2": 0, "lineWidth": 9,"lineColor":"#ffb800"}]},
|
||||
{"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"}]},
|
||||
{"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"}]},
|
||||
{"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": {
|
||||
{
|
||||
"style": "invoiceLineItemsTable",
|
||||
"table": {
|
||||
"headerRows": 1,
|
||||
"widths": "$invoiceLineItemColumns",
|
||||
"body": "$invoiceLineItems"
|
||||
},
|
||||
"layout": {
|
||||
"hLineWidth": "$notFirst:.5",
|
||||
"vLineWidth": "$none",
|
||||
"hLineColor": "$primaryColor:#009d91",
|
||||
"paddingLeft": "$amount:8",
|
||||
"paddingRight": "$amount:8",
|
||||
"paddingTop": "$amount:8",
|
||||
"paddingBottom": "$amount:8"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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": 76,
|
||||
"y": 20,
|
||||
"w": 182,
|
||||
"h": 30,
|
||||
"r": 4,
|
||||
"lineWidth": 1,
|
||||
"color": "$primaryColor:#009d91"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"style": "subtotalsBalance",
|
||||
"table": {
|
||||
"widths": ["*", "35%"],
|
||||
"body": "$subtotalsBalance"
|
||||
},
|
||||
"layout": {
|
||||
"hLineWidth": "$none",
|
||||
"vLineWidth": "$none",
|
||||
"paddingLeft": "$amount:34",
|
||||
"paddingRight": "$amount:8",
|
||||
"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": [
|
||||
{"canvas": [{ "type": "line", "x1": 0, "y1": 38, "x2": 68, "y2": 38, "lineWidth": 6,"lineColor":"#009d91"}]},
|
||||
{"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"}]},
|
||||
{"canvas": [{ "type": "line", "x1": 333, "y1": 0, "x2": 399, "y2": 0, "lineWidth": 6,"lineColor":"#e60042"}]},
|
||||
{"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"}]},
|
||||
{"canvas": [{ "type": "line", "x1": 532, "y1": 0, "x2": 600, "y2": 0, "lineWidth": 6,"lineColor":"#ac2b50"}]},
|
||||
{
|
||||
"text": "$invoiceFooter",
|
||||
"alignment": "left",
|
||||
"margin": [40, -60, 40, 0]
|
||||
}
|
||||
],
|
||||
"header": [
|
||||
{"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"}]},
|
||||
{"canvas": [{ "type": "line", "x1": 135, "y1": 0, "x2": 201, "y2": 0, "lineWidth": 9,"lineColor":"#ffb800"}]},
|
||||
{"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"}]},
|
||||
{"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"}]},
|
||||
{"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"
|
||||
},
|
||||
"odd": {
|
||||
"fillColor":"#F7F7F7"
|
||||
},
|
||||
"productKey": {
|
||||
"color": "$secondaryColor:#bb3328"
|
||||
},
|
||||
"lineTotal": {
|
||||
"bold": true
|
||||
},
|
||||
"tableHeader": {
|
||||
"bold": true,
|
||||
"fontSize": "$fontSizeLargest",
|
||||
"color": "#FFFFFF"
|
||||
},
|
||||
"secondTableHeader": {
|
||||
"color": "$primaryColor:#009d91"
|
||||
},
|
||||
"costTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"qtyTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"lineTotalTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"subtotalsBalanceDueLabel": {
|
||||
"fontSize": "$fontSizeLargest",
|
||||
"color":"#FFFFFF",
|
||||
"bold": true
|
||||
},
|
||||
"subtotalsBalanceDue": {
|
||||
"fontSize": "$fontSizeLargest",
|
||||
"bold": true,
|
||||
"color":"#FFFFFF",
|
||||
"alignment":"right"
|
||||
},
|
||||
"invoiceDetails": {
|
||||
"color": "#FFFFFF"
|
||||
},
|
||||
"invoiceLineItemsTable": {
|
||||
"margin": [0, 0, 0, 16]
|
||||
},
|
||||
"invoiceDetailBalanceDueLabel": {
|
||||
"bold": true
|
||||
},
|
||||
"invoiceDetailBalanceDue": {
|
||||
"bold": true
|
||||
},
|
||||
"fromLabel": {
|
||||
"color": "$primaryColor:#009d91"
|
||||
},
|
||||
"toLabel": {
|
||||
"color": "$primaryColor:#009d91"
|
||||
},
|
||||
"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]
|
||||
},
|
||||
"odd": {
|
||||
"fillColor":"#F7F7F7"
|
||||
},
|
||||
"productKey": {
|
||||
"color": "$secondaryColor:#bb3328"
|
||||
},
|
||||
"lineTotal": {
|
||||
"bold": true
|
||||
},
|
||||
"tableHeader": {
|
||||
"bold": true,
|
||||
"fontSize": "$fontSizeLargest",
|
||||
"color": "#FFFFFF"
|
||||
},
|
||||
"secondTableHeader": {
|
||||
"color": "$primaryColor:#009d91"
|
||||
},
|
||||
"costTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"qtyTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"lineTotalTableHeader": {
|
||||
"alignment": "right"
|
||||
},
|
||||
"subtotalsBalanceDueLabel": {
|
||||
"fontSize": "$fontSizeLargest",
|
||||
"color":"#FFFFFF",
|
||||
"bold": true
|
||||
},
|
||||
"subtotalsBalanceDue": {
|
||||
"fontSize": "$fontSizeLargest",
|
||||
"bold": true,
|
||||
"color":"#FFFFFF",
|
||||
"alignment":"right"
|
||||
},
|
||||
"invoiceDetails": {
|
||||
"color": "#FFFFFF"
|
||||
},
|
||||
"invoiceLineItemsTable": {
|
||||
"margin": [0, 0, 0, 16]
|
||||
},
|
||||
"invoiceDetailBalanceDueLabel": {
|
||||
"bold": true
|
||||
},
|
||||
"invoiceDetailBalanceDue": {
|
||||
"bold": true
|
||||
},
|
||||
"fromLabel": {
|
||||
"color": "$primaryColor:#009d91"
|
||||
},
|
||||
"toLabel": {
|
||||
"color": "$primaryColor:#009d91"
|
||||
},
|
||||
"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]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user