18require_once DOL_DOCUMENT_ROOT.
'/core/class/commondocgenerator.class.php';
78 $type =
'expensereport';
81 include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
101function 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);
139 $langs->load(
"orders");
140 return $langs->trans(
"NoDescription");
151 $langs->load(
"trips");
152 return $langs->trans(
"NoExample");
174 return $langs->trans(
"NotAvailable");
185 $langs->load(
"admin");
187 if ($this->version ==
'development') {
188 return $langs->trans(
"VersionDevelopment");
189 } elseif ($this->version ==
'experimental') {
190 return $langs->trans(
"VersionExperimental");
191 } elseif ($this->version ==
'dolibarr') {
193 } elseif ($this->version) {
194 return $this->version;
196 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.