Reply To: Question about templates for PDF output

#2229
RRowley
Participant

The first step is to create an extension. Go to the SETTINGS, Customize option and add your extension. The extension is not enabled when created. You can enable it via this same screen when you are ready to test it. Next, you would would create the extensions/<extensionname>/modules/invoices/manage.php and the extensions/<extensionname>/templates/default/invoices/manage.tpl files. This might be all you need. The manage.php file gathers the data and puts it in the data.json file and the manage.tpl builds the display screen that shows the data. It is likely that the custom fields you want to display are in the $invoices record returned by the getAllWithHavings function. This will take a bit of coding on your part. Hope it works out. BTW, when new versions of SI are loaded, you manually copy your extentions directory from old to new version and it should keep working.

  • This reply was modified 5 months, 3 weeks ago by RRowley.