dolibarr 19.0.3
modules_expensereport.php
1<?php
2/* Copyright (C) 2015 Laurent Destailleur <eldy@users.sourceforge.net>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18require_once DOL_DOCUMENT_ROOT.'/core/class/commondocgenerator.class.php';
19require_once DOL_DOCUMENT_ROOT.'/core/class/commonnumrefgenerator.class.php';
20
21
26{
27 // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
35 public static function liste_modeles($db, $maxfilenamelength = 0)
36 {
37 // phpcs:enable
38 $type = 'expensereport';
39 $list = array();
40
41 include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
42 $list = getListOfModels($db, $type, $maxfilenamelength);
43
44 return $list;
45 }
46}
47
61function expensereport_pdf_create(DoliDB $db, ExpenseReport $object, $message, $modele, $outputlangs, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
62{
63 return $object->generateDocument($modele, $outputlangs, $hidedetails, $hidedesc, $hideref);
64}
65
70{
71 // No overload code
72}
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.
static liste_modeles($db, $maxfilenamelength=0)
Return list of active models generation.
Parent class for numbering masks of expense reports.
getListOfModels($db, $type, $maxfilenamelength=0)
Return list of activated modules usable for document generation.