Customizing reports

Phase outgoing transmittals reorts are generated with Reportlab package. Reports work out of the box but can be completely customized.

Report templates

There is no templating mechanism per se, but a simple class defining pdf content and layout. The base class is transmittals.pdf.BaseTransmittalPdf. It can be overriden by subclassing it in a module, on a per organisation basis. Then, each custom pdf generator is referenced in PDF_CONFIGURATION settings which will provide the dotted path to it.

PDF_CONFIGURATION = {
    'TRANSMITTALS_PDF_GENERATOR_ABC': 'import.path.to.Class_1',
    'TRANSMITTALS_PDF_GENERATOR_XYZ': 'import.path.to.Class_2',
}

where ABC and XYZ are the organisations trigrams.