SimpleInvoices Group Forum › Forums › Fearless359 SimpleInvoices Discussion Group › Question about templates for PDF output › Reply To: Question about templates for PDF output
I think this is the post you were referring to in the other thread…
I followed these instructions and I copied /modules/invoices/manage.php to extensions/MYextension/modules/invoices/manage.php and then I copied /templates/default/invoices/manage.tpl to extensions/MYextension/templates/default/invoices/manage.tpl and then I enabled MYextension in SETTINGS > Customize > Extensions (it now has a lit light bulb and a green puzzle piece on the right).
You mentioned the getAllWithHavings but in the manage.php file I only see this code:
$invoices = Invoice::getAllWithHavings($having, '', '', true, false,
$invoiceDisplayDays);
and no other way to add any fields there…
Next I opened in the editor the manage.tpl file and where the table is built and this line is:
<th>{$LANG.billerUc}</th>
I’ve added (just to make sure I’m in the right place) of the code:
<th>xxxx{$LANG.billerUc}</th>
but I don’t see those “xxxx” being displayed anywhere in my table, even after re-loading, logging out and using an incognito browser window. What am I doing wrong?
Also later in that file I see:
<script>
{literal}
$(document).ready(function () {
$('#si-data-table').DataTable({
"ajax": "./public/data.json",
"orderClasses": false,
"deferRender": true,
"responsive": true,
"columns": [
{"data": "action"},
{"data": "index_id"},
{"data": "biller"},
{"data": "customer"},
{"data": "preference"},
{"data": "date"},
but what are the other “data” fields I can add here? How do I add the custom fields here?
Recent Comments