dolibarr  7.0.0-beta
Classes | Functions
expensereport.class.php File Reference

File to manage Expense Reports. More...

Go to the source code of this file.

Classes

class  ExpenseReport
 Class to manage Trips and Expenses. More...
 
class  ExpenseReportLine
 Class of expense report details lines. More...
 

Functions

 select_expensereport_statut ($selected='', $htmlname='fk_statut', $useempty=1, $useshortlabel=0)
 Retourne la liste deroulante des differents etats d'une note de frais. More...
 
 select_type_fees_id ($selected='', $htmlname='type', $showempty=0, $active=1)
 Return list of types of notes with select value = id. More...
 

Detailed Description

File to manage Expense Reports.

Definition in file expensereport.class.php.

Function Documentation

select_expensereport_statut (   $selected = '',
  $htmlname = 'fk_statut',
  $useempty = 1,
  $useshortlabel = 0 
)

Retourne la liste deroulante des differents etats d'une note de frais.

Les valeurs de la liste sont les id de la table c_expensereport_statuts

Parameters
int$selectedpreselect status
string$htmlnameName of HTML select
int$useempty1=Add empty line
int$useshortlabelUse short labels
Returns
string HTML select with status

Definition at line 2643 of file expensereport.class.php.

References print.

select_type_fees_id (   $selected = '',
  $htmlname = 'type',
  $showempty = 0,
  $active = 1 
)

Return list of types of notes with select value = id.

Parameters
int$selectedPreselected type
string$htmlnameName of field in form
int$showemptyAdd an empty field
int$active1=Active only, 0=Unactive only, -1=All
Returns
string Select html

Definition at line 2678 of file expensereport.class.php.

References $resql, and print.