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");
98 return $langs->trans(
"NotAvailable");
109 $langs->load(
"admin");
111 if ($this->version ==
'development')
return $langs->trans(
"VersionDevelopment");
112 if ($this->version ==
'experimental')
return $langs->trans(
"VersionExperimental");
113 if ($this->version ==
'dolibarr')
return DOL_VERSION;
114 if ($this->version)
return $this->version;
115 return $langs->trans(
"NotAvailable");
143 $type=
'chequereceipt';
146 include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
149 $liste = array(
'blochet'=>
'blochet');
170 $langs->load(
"bills");
172 $dir = DOL_DOCUMENT_ROOT .
"/core/modules/cheque/doc/";
177 if (! empty($conf->global->CHEQUERECEIPT_ADDON_PDF))
179 $modele = $conf->global->CHEQUERECEIPT_ADDON_PDF;
190 $file =
"pdf_".$modele.
".modules.php";
191 if (file_exists($dir.$file))
193 $classname =
"pdf_".$modele;
194 require_once $dir.$file;
196 $obj =
new $classname($db);
200 $sav_charset_output=$outputlangs->charset_output;
201 if ($obj->write_file($id, $outputlangs) > 0)
203 $outputlangs->charset_output=$sav_charset_output;
208 $outputlangs->charset_output=$sav_charset_output;
215 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.
dol_print_error($db='', $error='', $errors=null)
Affiche message erreur system avec toutes les informations pour faciliter le diagnostic et la remonte...
Cheque Receipts numbering references mother class.
Classe mere des modeles de.
isEnabled()
Return if a module can be used or not.
canBeActivated()
Test if the existing numbers in the database do not cause conflicts that would prevent this numbering...
Parent class for documents generators.
getListOfModels($db, $type, $maxfilenamelength=0)
Return list of activated modules usable for document generation.
dol_strlen($string, $stringencoding='UTF-8')
Make a strlen call.