29require_once DOL_DOCUMENT_ROOT.
'/core/class/commondocgenerator.class.php';
30require_once DOL_DOCUMENT_ROOT.
'/core/class/commonnumrefgenerator.class.php';
31require_once DOL_DOCUMENT_ROOT.
'/product/class/product.class.php';
32require_once DOL_DOCUMENT_ROOT.
'/compta/bank/class/account.class.php';
63 $type =
'chequereceipt';
66 include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
69 $list = array(
'blochet'=>
'blochet');
90 $langs->load(
"bills");
92 $dir = DOL_DOCUMENT_ROOT.
"/core/modules/cheque/doc/";
106 $file =
"pdf_".$modele.
".modules.php";
107 if (file_exists($dir.$file)) {
108 $classname =
"pdf_".$modele;
109 require_once $dir.$file;
111 $obj =
new $classname($db);
115 $sav_charset_output = $outputlangs->charset_output;
116 if ($obj->write_file($id, $outputlangs) > 0) {
117 $outputlangs->charset_output = $sav_charset_output;
120 $outputlangs->charset_output = $sav_charset_output;
125 dol_print_error(
null, $langs->trans(
"Error").
" ".$langs->trans(
"ErrorFileDoesNotExists", $dir.$file));
Parent class for documents (PDF, ODT, ...) generators.
Parent class for number ref generators.
Class parent for templates of document generation.
static liste_modeles($db, $maxfilenamelength=0)
Return list of active generation modules.
Class parent for cheque Receipts numbering references mother class.
getListOfModels($db, $type, $maxfilenamelength=0)
Return list of activated modules usable for document generation.
dol_strlen($string, $stringencoding='UTF-8')
Make a strlen call.
dol_print_error($db=null, $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
chequereceipt_pdf_create($db, $id, $message, $modele, $outputlangs)
Cree un bordereau remise de cheque.