18 require_once DOL_DOCUMENT_ROOT.
'/core/class/commondocgenerator.class.php';
78 $type =
'expensereport';
81 include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
101 function expensereport_pdf_create(
DoliDB $db,
ExpenseReport $object, $message, $modele, $outputlangs, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
103 return $object->generateDocument($modele, $outputlangs, $hidedetails, $hidedesc, $hideref);
136 $langs->load(
"orders");
137 return $langs->trans(
"NoDescription");
148 $langs->load(
"trips");
149 return $langs->trans(
"NoExample");
171 return $langs->trans(
"NotAvailable");
182 $langs->load(
"admin");
184 if ($this->version ==
'development') {
185 return $langs->trans(
"VersionDevelopment");
186 } elseif ($this->version ==
'experimental') {
187 return $langs->trans(
"VersionExperimental");
188 } elseif ($this->version ==
'dolibarr') {
190 } elseif ($this->version) {
191 return $this->version;
193 return $langs->trans(
"NotAvailable");
Parent class for documents generators.
Class to manage Dolibarr database access.
Class to manage Trips and Expenses.
Parent class for trips and expenses templates.
static liste_modeles($db, $maxfilenamelength=0)
Return list of active models generation.
Parent class for numbering masks of expense reports.
getExample()
Returns an example of numbering.
isEnabled()
Return if a model can be used or not.
getVersion()
Returns the version of the numbering module.
info()
Returns the default description of the numbering model.
canBeActivated()
Test whether the numbers already in force in the base do not cause conflicts that would prevent this ...
getNextValue($object)
Returns next assigned value.
getListOfModels($db, $type, $maxfilenamelength=0)
Return list of activated modules usable for document generation.