FormExpenseReport
class FormExpenseReport (View source)
Class to manage generation of HTML components for contract module
Properties
| DoliDB | $db | ||
| string | $error |
Methods
selectExpensereportStatus($selected = 0, string $htmlname = 'fk_statut', $useempty = 1, $useshortlabel = 0, $morecss = '')
Return the combobox for the different statuses of an expense report The list values are the ids from the labelStatus.
selectTypeExpenseReport($selected = 0, string $htmlname = 'type', $showempty = 0, $active = 1)
Return list of types of notes with select value = id
Details
__construct(DoliDB $db)
Constructor
selectExpensereportStatus($selected = 0, string $htmlname = 'fk_statut', $useempty = 1, $useshortlabel = 0, $morecss = '')
Return the combobox for the different statuses of an expense report The list values are the ids from the labelStatus.
@param int $selected preselect status
selectTypeExpenseReport($selected = 0, string $htmlname = 'type', $showempty = 0, $active = 1)
Return list of types of notes with select value = id
@param int $selected Preselected type