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')
return $langs->trans(
"VersionDevelopment");
113 if ($this->version ==
'experimental')
return $langs->trans(
"VersionExperimental");
114 if ($this->version ==
'dolibarr')
return DOL_VERSION;
115 if ($this->version)
return $this->version;
116 return $langs->trans(
"NotAvailable");
144 $type =
'chequereceipt';
147 include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
150 $liste = array(
'blochet'=>
'blochet');
170 global $conf, $langs;
171 $langs->load(
"bills");
173 $dir = DOL_DOCUMENT_ROOT.
"/core/modules/cheque/doc/";
178 if (!empty($conf->global->CHEQUERECEIPT_ADDON_PDF))
180 $modele = $conf->global->CHEQUERECEIPT_ADDON_PDF;
189 $file =
"pdf_".$modele.
".modules.php";
190 if (file_exists($dir.$file))
192 $classname =
"pdf_".$modele;
193 require_once $dir.$file;
195 $obj =
new $classname($db);
199 $sav_charset_output = $outputlangs->charset_output;
200 if ($obj->write_file($id, $outputlangs) > 0)
202 $outputlangs->charset_output = $sav_charset_output;
205 $outputlangs->charset_output = $sav_charset_output;
210 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.
Classe mere des modeles de.
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.