dolibarr  7.0.0-beta
Public Member Functions | List of all members
ExpenseReportLine Class Reference

Class of expense report details lines. More...

Public Member Functions

 __construct ($db)
 Constructor. More...
 
 fetch ($rowid)
 Fetch record for expense report detailed line. More...
 
 insert ($notrigger=0, $fromaddline=false)
 insert More...
 
 getExpAmount (ExpenseReportRule $rule, $fk_user, $mode='day')
 Function to get total amount in expense reports for a same rule. More...
 
 update ($fuser)
 update More...
 

Detailed Description

Class of expense report details lines.

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

Constructor & Destructor Documentation

ExpenseReportLine::__construct (   $db)

Constructor.

Parameters
DoliDB$dbHandlet database

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

Member Function Documentation

ExpenseReportLine::fetch (   $rowid)

Fetch record for expense report detailed line.

Parameters
int$rowidId of object to load
Returns
int <0 if KO, >0 if OK

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

References dol_print_error(), and vatrate().

ExpenseReportLine::getExpAmount ( ExpenseReportRule  $rule,
  $fk_user,
  $mode = 'day' 
)

Function to get total amount in expense reports for a same rule.

Parameters
ExpenseReportRule$ruleobject rule to check
int$fk_useruser author id
string$modeday|EX_DAY / month|EX_MON / year|EX_YEA to get amount
Returns
amount

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

References $resql, dol_print_error(), and dol_syslog().

ExpenseReportLine::insert (   $notrigger = 0,
  $fromaddline = false 
)

insert

Parameters
int$notrigger1=No trigger
bool$fromaddlinefalse=keep default behavior, true=exclude the update_price() of parent object
Returns
int <0 if KO, >0 if OK

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

References $resql, dol_syslog(), price2num(), and vatrate().

ExpenseReportLine::update (   $fuser)

update

Parameters
User$fuserUser
Returns
int <0 if KO, >0 if OK

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

References $resql, dol_print_error(), dol_syslog(), price2num(), and vatrate().


The documentation for this class was generated from the following file: