29 require_once DOL_DOCUMENT_ROOT.
'/core/class/commondocgenerator.class.php';
30 require_once DOL_DOCUMENT_ROOT.
'/product/class/product.class.php';
31 require_once DOL_DOCUMENT_ROOT.
'/compta/bank/class/account.class.php';
62 $langs->load(
"bills");
63 return $langs->trans(
"NoDescription");
74 $langs->load(
"bills");
75 return $langs->trans(
"NoExample");
99 return $langs->trans(
"NotAvailable");
110 $langs->load(
"admin");
112 if ($this->version ==
'development') {
113 return $langs->trans(
"VersionDevelopment");
115 if ($this->version ==
'experimental') {
116 return $langs->trans(
"VersionExperimental");
118 if ($this->version ==
'dolibarr') {
121 if ($this->version) {
122 return $this->version;
124 return $langs->trans(
"NotAvailable");
151 $type =
'chequereceipt';
154 include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
157 $list = array(
'blochet'=>
'blochet');
177 global $conf, $langs;
178 $langs->load(
"bills");
180 $dir = DOL_DOCUMENT_ROOT.
"/core/modules/cheque/doc/";
184 if (!empty($conf->global->CHEQUERECEIPT_ADDON_PDF)) {
185 $modele = $conf->global->CHEQUERECEIPT_ADDON_PDF;
194 $file =
"pdf_".$modele.
".modules.php";
195 if (file_exists($dir.$file)) {
196 $classname =
"pdf_".$modele;
197 require_once $dir.$file;
199 $obj =
new $classname($db);
203 $sav_charset_output = $outputlangs->charset_output;
204 if ($obj->write_file($id, $outputlangs) > 0) {
205 $outputlangs->charset_output = $sav_charset_output;
208 $outputlangs->charset_output = $sav_charset_output;
213 dol_print_error(
'', $langs->trans(
"Error").
" ".$langs->trans(
"ErrorFileDoesNotExists", $dir.$file));
getVersion()
Returns the module numbering version.
chequereceipt_pdf_create($db, $id, $message, $modele, $outputlangs)
Cree un bordereau remise de cheque.
getNextValue($objsoc, $object)
Returns the next value.
static liste_modeles($db, $maxfilenamelength=0)
Return list of active generation modules.
info()
Return the default description of numbering module.
getExample()
Return numbering example.
Cheque Receipts numbering references mother class.
Class parent for templates of document generation.
isEnabled()
Return if a module can be used or not.
dol_strlen($string, $stringencoding= 'UTF-8')
Make a strlen call.
canBeActivated()
Checks if the numbers already in the database do not cause conflicts that would prevent this numberin...
dol_print_error($db= '', $error= '', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
Parent class for documents generators.
getListOfModels($db, $type, $maxfilenamelength=0)
Return list of activated modules usable for document generation.