Skip to content

Support

sonikf edited this page Jan 13, 2023 · 11 revisions


Discussions

Wanna share a thought, idea? Click here

CTPT issues

For any issue regarding CTPT module please click here after reading the next section.

Please post your instance info e.g.:

Version Dolibarr: 16.0.1

OS: GNU/Linux

Web Server: Apache/2.4.54

PHP: 7.4.33

MariaDB/MySQL: 10.5.18

A screenshot presenting the problem would be very much appreciated!

Troubleshooting

  • Make sure your user has the necessary permissions (user tab).

h1

  • Make sure the htdocs/custom/ctpt folder and subfolders have the necessary permissions rwx r-x r-x or 755 and files rw- r-- r-- or 644

h2

  • Make sure the number of t's in the mercure mask is the same as the number of characters after TE_ in the 3rd party Types dictionary.

    e.g {ttt}{0000} -> TE_ABC or {t}{0000} -> TE_C

  • During the cloning of an older invoice you should choose the mask first before validating

ℹ️ If your language uses non latin characters

  1. Make sure (TE_) in the Third Party Types dictionary is in Latin.

  2. Up to Dolibarr version 16 the 3rd party Types dictionary does not support non latin characters after (TE_), but you can achieve this with a small change in htdocs/core/lib/functions2.lib.php (This is fixed in 17.0.0)

from

$masktype_value = substr(preg_replace('/^TE_/', '', $objsoc->typent_code), 0, dol_strlen($regType[1]));

to

$masktype_value = dol_substr(preg_replace('/^TE_/', '', $objsoc->typent_code), 0, dol_strlen($regType[1]));

  • Finally, delete the extrafield from Settings->Modules-Invoices-Additional features (invoices) and disable/enable the module again