First setup: Difference between revisions

m
Line 76: Line 76:
* MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT => Hide all information about VAT on generated documents.
* MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT => Hide all information about VAT on generated documents.


* MAIN_OPTIMIZE_SPEED => Use some speed enhancements, like using the minifying and compressed version of javascript. Apache server must be configured to have the line
* MAIN_OPTIMIZE_SPEED => Use some speed enhancements.
AddType text/javascript .jgz
If value of constant has bit 0 set, Dolibarr will use the minifying and compressed version of javascript. Apache server must be configured to have the line
AddEncoding gzip .jgz
<source lang="ini">
AddType text/javascript .jgz
AddEncoding gzip .jgz
</source>


* MAIN_USE_BACKGROUND_ON_PDF => Define this constant with short name of an image (example "myimage.jpg") that must be saved into directory "documents/mycompany/logos". This will add this background image into your generated PDF files.
* MAIN_USE_BACKGROUND_ON_PDF => Define this constant with short name of an image (example "myimage.jpg") that must be saved into directory "documents/mycompany/logos". This will add this background image into your generated PDF files.