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');
144 global
$conf, $langs;
145 $langs->load(
"bills");
147 $dir = DOL_DOCUMENT_ROOT.
"/core/modules/cheque/doc/";
161 $file =
"pdf_".$modele.
".modules.php";
162 if (file_exists($dir.$file)) {
163 $classname =
"pdf_".$modele;
164 require_once $dir.$file;
166 $obj =
new $classname($db);
167 '@phan-var-force ModeleChequeReceipts $obj';
171 $sav_charset_output = $outputlangs->charset_output;
173 if ($obj->write_file(
$id, $outputlangs) > 0) {
174 $outputlangs->charset_output = $sav_charset_output;
177 $outputlangs->charset_output = $sav_charset_output;
182 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.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...
chequereceipt_pdf_create($db, $id, $message, $modele, $outputlangs)
Cree un bordereau remise de cheque.