19require_once DOL_DOCUMENT_ROOT.
'/core/class/commondocgenerator.class.php';
20require_once DOL_DOCUMENT_ROOT.
'/core/class/commonnumrefgenerator.class.php';
39 $type =
'expensereport';
42 include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
61 abstract public function write_file(
$object, $outputlangs, $srctemplatepath =
'', $hidedetails = 0, $hidedesc = 0, $hideref = 0);
77function expensereport_pdf_create(
DoliDB $db,
ExpenseReport $object, $message, $modele, $outputlangs, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
79 return $object->generateDocument($modele, $outputlangs, $hidedetails, $hidedesc, $hideref);
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
Parent class for documents (PDF, ODT, ...) generators.
Parent class for number ref generators.
Class to manage Dolibarr database access.
Class to manage Trips and Expenses.
Parent class for trips and expenses templates.
write_file($object, $outputlangs, $srctemplatepath='', $hidedetails=0, $hidedesc=0, $hideref=0)
Function to build pdf onto disk.
static liste_modeles($db, $maxfilenamelength=0)
Return list of active generation modules.
Parent class for numbering masks of expense reports.
getExample()
Return an example of numbering.
getNextValue($object)
Return next free value.
getListOfModels($db, $type, $maxfilenamelength=0)
Return list of activated modules usable for document generation.