30require_once DOL_DOCUMENT_ROOT.
'/core/class/commondocgenerator.class.php';
31require_once DOL_DOCUMENT_ROOT.
'/core/class/commonnumrefgenerator.class.php';
32require_once DOL_DOCUMENT_ROOT.
'/product/class/product.class.php';
33require_once DOL_DOCUMENT_ROOT.
'/compta/bank/class/account.class.php';
104 $type =
'chequereceipt';
107 include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
110 $list = array(
'blochet' =>
'blochet');
142 global $conf, $langs;
143 $langs->load(
"bills");
145 $dir = DOL_DOCUMENT_ROOT.
"/core/modules/cheque/doc/";
159 $file =
"pdf_".$modele.
".modules.php";
160 if (file_exists($dir.$file)) {
161 $classname =
"pdf_".$modele;
162 require_once $dir.$file;
164 $obj =
new $classname($db);
165 '@phan-var-force ModeleChequeReceipts $obj';
169 $sav_charset_output = $outputlangs->charset_output;
170 if ($obj->write_file(
$id, $outputlangs) > 0) {
171 $outputlangs->charset_output = $sav_charset_output;
174 $outputlangs->charset_output = $sav_charset_output;
179 dol_print_error(
null, $langs->trans(
"Error").
" ".$langs->trans(
"ErrorFileDoesNotExists", $dir.$file));
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
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.
write_file($object, $_dir, $number, $outputlangs)
Fonction to generate document on disk.
Class parent for cheque Receipts numbering references mother class.
getExample()
Return an example of numbering.
getNextValue($objsoc, $object)
Return next free value.
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 a Dolibarr global constant string value.
chequereceipt_pdf_create($db, $id, $message, $modele, $outputlangs)
Cree un bordereau remise de cheque.