I was trying as a test to add a text line using this suggestion:
https://www.invoiceninja.com/forums/topic/adding-a-terms-page/#post-9178
…But it gives an error, and I don’t want my custom text line at the bottom of everything, I just want it at the bottom of the Total. Before the page break.
If I change the code to the following (Adding “text”: “Custom Text” just above where it says },
“$notesAndTerms”, "$signature …) I get the error notated below:
{
"style": "invoiceLineItemsTable",
"table": {
"headerRows": 1,
"widths": [
"15%",
"43%",
"10%",
"10%",
"11%",
"11%"
],
"body": "$invoiceLineItems"
},
"layout": {
"hLineWidth": "$notFirst:.5",
"vLineWidth": "$none",
"hLineColor": "#D8D8D8",
"paddingLeft": "$amount:8",
"paddingRight": "$amount:8",
"paddingTop": "$amount:14",
"paddingBottom": "$amount:14"
}
},
{
"pageBreak": "after",
"columns": [
{
"table": {
"widths": [
"*",
"40%"
],
"body": "$subtotals"
},
"layout": {
"hLineWidth": "$none",
"vLineWidth": "$none",
"paddingLeft": "$amount:34",
"paddingRight": "$amount:8",
"paddingTop": "$amount:4",
"paddingBottom": "$amount:4"
}
}
]
"text": "Custom Text"
},
"$notesAndTerms",
"$signature",
{
"stack": [
"$invoiceDocuments"
],
"style": "invoiceDocuments"
}
]
Uncaught Error: Parse error on line 120: … } ] “text”: "Custom Text --------------------^ Expecting ‘EOF’, ‘}’, ‘,’, ‘]’, got ‘STRING’
Line 120 is the line immediately before the custom text line I just added.
Any help would be greatly appreciated!!!